Easy Boilerplate with basic JWT authentication for a Koa Redux React app with Webpack, Mocha and Babel.
-
Clone repo
git clone https://github.com/cluk3/easy-koa-mongo-redux-react-jwt-auth-boilerplate.git
-
Install dependencies
npm install
-
Run the webserver
npm run webserver
Webserver should be running at http://localhost:3000/
-
Make build
npm run build
-
Run development server
npm run dev
Development server should be running at http://localhost:8080/
- Node - JS runtime environment
- npm - package manager
- Koa - api framework
- koa-router - api router
- koa-cors - cors support
- Babel - ES6 transpiler
- Webpack - module bundler & task runner
- React - interfaces
- react-hot-loader - hot reloading for react
- react-router - react application router
- react-redux - react bindings for redux
- Redux - awesome flux architecture
- redux-thunk - thunk middleware for redux
- isomorphic-fetch - API fetch network requests
- redux-devtools - redux development tool
- ESLint - linter
- Mocha - unit tests
- jsdom - vdom to test React without browser
- Chai - assertion library
- material-ui - React Components that Implement Google's Material Design
- react-flexbox-grid - React components implementing flexboxgrid
- A bunch of useful scripts
-
npm run webserver
Starts Koa server
-
npm run test
Runs unit tests
-
npm run test:watch
Watches for changes to run unit tests
-
npm run build
Bundles the application
-
npm run dev
Starts webpack development server
-
npm run lint
Runs the linter
-
npm run deploy
Creates the production ready files
-
npm run clean
Removes the bundled code and the production ready files
Every kind of contribution, critic, feedback or bug report is highly appreciated!
I've taken lot of code from here: https://github.com/mezod/boilerplate-koa-redux-react .
Thanks to mezod for the inspiring repo :)