- webpack
- react
- babel / ES6
- cssnext
- css module
- sanitize.css
- eslint
- stylelint
- hot/live reload
- page.js routing
- ejs view
- offline support
- code splitting
- long-term caching
- json-server fake api
Clone this project, and...
rm -rf .git # clean up git
npm install # install dependencies
npm start
Head to http://localhost:8000/.
You can also open port other than 8000, take 8080 for example.
npm start -- -p 8080
Or simply edit the config in package.json
.
npm run build
Built files are now in dist/
.
npm run lint
run the npm start
command or npm run json-server
command will start a fake api server with basic CRUD. The port and delay latency for each api call are 8001
and 500ms
by default, you can also change them in the config in package.json
or by flag -a
and -d
respectively.