- Support ES6 syntax.
- API server endpoint.
- Traditional flux structure.
- Use react-router.
- Autorestart API server. [Development mode]
- HMR support. [Development mode]
- Basic authentication. (TODO)
-
Fork this seed.
-
$ npm install
-
$ npm run start-dev
-
Use nodemon to progress files under
server
,api
. -
Use webpack-dev-server + http-proxy to progress HMR (Hot Module Replacement).
-
-
In
app
is a react app.- Traditional flux structure.
- Entry point is
app/app.es6
.
-
In
server
is api server based on express.-
Add new endpoint in
server/api
, route path will automatically add by three ways.priority: c > b > a
a. By filename:
news.es6
will be/news
b. By exporting path:
const path = "/news/id" export default {path}
c. By custom routing:
{ method: "GET", path: "/news/my/path", handle: function () {} }
-
- Basic Authentication
- Test