Skip to content

25sprout/web-starter

Repository files navigation

Web Starter

Features

  • 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

Getting Started

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.

Build

npm run build

Built files are now in dist/.

lint

npm run lint

json-server

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.

Releases

No releases published

Packages

No packages published