Skip to content

jmosbech/react-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-boilerplate

This repo contains the skeleton for a web app built with React, Node.js, Express, Browserify, and Sass.

Dependency Status

Install

  1. Fetch from GitHub into cwd:
curl -L https://github.com/jmosbech/react-boilerplate/tarball/master | tar zx --strip-components=1
  1. Install dependencies:
npm install
  1. Start hacking

Usage

Start

Starting the app is easy, but remember to build the bundles first (see below):

node .

Build

To build CSS and JavaScript bundles before deploying to production:

npm run build

Watch

To automatically rebuild CSS and JavaScript bundles while developing, start the app using:

npm run watch

Structure

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.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published