This repo contains the skeleton for a web app built with React, Node.js, Express, Browserify, and Sass.
- Fetch from GitHub into cwd:
curl -L https://github.com/jmosbech/react-boilerplate/tarball/master | tar zx --strip-components=1
- Install dependencies:
npm install
- Start hacking
Starting the app is easy, but remember to build the bundles first (see below):
node .
To build CSS and JavaScript bundles before deploying to production:
npm run build
To automatically rebuild CSS and JavaScript bundles while developing, start the app using:
npm run watch
The repo is organized like this:
app.js
: Main file. Starts the server./bin
: Various build scripts./browser
: All browser code: Sass and JSX files./public
: Publicly available static assets: build output and images./routes
: Express route definitions./test
: Mocha specs./views
: Server side views. Written with PEJS.
MIT