Skip to content

A minimalist latest version react and react-router skeleton, an exploration for personal use (ES6, browserify, watchify, browsersync, sass, npm instead of gulp...)

License

Notifications You must be signed in to change notification settings

ericaporter/react-starter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

react-starter

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.

Minimalist instructions

This project attempts to document itself in the commit comments (and related issues), so please review if interested.

Global environment

  • 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

Install

npm install

Build

npm run build

Then run in either dev or server modes

Serve up in dev mode

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...

Serve up in production server mode

NODE_ENV=production node index.js

Or just serve up

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.

About

A minimalist latest version react and react-router skeleton, an exploration for personal use (ES6, browserify, watchify, browsersync, sass, npm instead of gulp...)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.5%
  • HTML 7.3%
  • CSS 5.2%