An exploration for personal use (ES6, browserify, watchify, browsersync, sass, npm instead of gulp...).
Ready for use, refactoring to latest versions of dependencies complete, React, ReactDom, React Router with axios data fetching from REST API server exposed by node/express server/bootstrapper. Coming soon: Redux managing app state and data, then auth and universal version.
A minimalist latest version react, react-router, axios for data fetching from node/express server and REST API server. Coming soon: redux and jwt/bcrypt auth skeleton.
This project attempts to document itself in the commit comments (and related issues), so please review if interested.
- Install node
- We are assuming node 4.x.x, npm 2.x.x
- Recommendation on supporting OS: install node binary manager
n
npm install -g n
n latest
- Install and configure git
- Install browserify
npm install -g browserify
- Install watchify
npm install -g watchify
- Install nodemon
npm install -g nodemon
- Install babel-cli
npm installl -g babel-cli
npm install
npm run build
Watches scss, js and runs server in parallel; browser refresh required to see changes.
npm run watch
Local browser-sync and/or hot reloader coming back soon...
NODE_ENV=production node index.js
npm start
Access app at http://example.com:3000
or directly to, for example http://example.com:3000/docs
.
Try out incipient REST API at http://localhost:3000/api/docs
.