It is a tool for building isomorphic applications using the MERN stack (Mongo, Express.js, React.js & Redux.js and Node).
git clone https://github.com/eddyw/mern-workflow.git
cd mern-workflow/
npm install
npm start
- Pretty Project Structure
- Hot Reloading.
- Traspile from ES2015 (ES6) to ES5 with babel.
- Support for Aync/Await and Generators functions when targeting ES5.
- Time travelling with Redux.js. Support for Chrome Redux DevTools Extension
- Using ReactDOMServer for generating static .html files on the server side (
renderToStaticMarkup
).
npm start
─ a simpler way of callingnpm run start:dev
.npm run start:dev
─ start the server in development mode with hot-reload enabled.npm run start:prod
─ start the server in production mode. NOTE: Run beforenpm run build
.npm run build
─ runsnpm run clean
,npm run build:client
andnpm run build:server
.npm run build:client
─ build src/client in production mode.npm run build:server
─ build src/server in production mode.npm run clean
─ runsnpm run clean:build
andnpm run clean:node_modules
.npm run clean:build
─ erases build/ folder.npm run clean:node_modules
─ erases node_modules/ folder.npm run eslint
─ runs the JavaScript linter in src/**/ **.npm run eslint:client
─ runs the JavaScript linter in src/client/**/ **.npm run eslint:server
─ runs the JavaScript linter in src/server/**/ **.
npm run test
npm run jest
npm run deploy
.
├── src
| ├── client
| | └── (it's not completed)
| └── server
| | └── (it's not completed)
├── .babelrc
├── .eslintrc.json
├── package.json
├── server.js
├── webpack.config.dev.js
├── webpack.config.prod.client.js
└── webpack.config.prod.server.js
Copyright (c) 2016 Eddy Wilson
MERN-WORKFLOW is released under the MIT License.