Skip to content

Latest commit

Β 

History

History
63 lines (49 loc) Β· 2.27 KB

File metadata and controls

63 lines (49 loc) Β· 2.27 KB

React Static Boilerplate

Directory Layout

.
β”œβ”€β”€ /build/                     # The folder for compiled output
β”œβ”€β”€ /node_modules/              # 3rd-party libraries and utilities
β”œβ”€β”€ /components/                # React components
β”œβ”€β”€ /core/                      # Core framework
β”œβ”€β”€ /pages/                     # React.js-based web pages
β”‚   β”œβ”€β”€ /404.js                 # Not Found page
β”‚   β”œβ”€β”€ /500.js                 # Error page
β”‚   └── /index.js               # Home / Submit page
β”œβ”€β”€ /static/                    # Static files such as favicon.ico etc.
β”œβ”€β”€ /test/                      # Unit and integration tests
β”œβ”€β”€ /tools/                     # Build automation scripts and utilities
│── app.js                      # The main JavaScript file (entry point)
│── config.js                   # Website configuration / settings
│── LICENSE.txt                 # License file
│── package.json                # Dev dependencies and NPM scripts
└── README.md                   # Project overview

Getting Started

Just clone the repo, install Node.js modules and run npm start:

$ git clone -o cfa-dance -b master --single-branch \
      https://github.com/keithk/cfa-dance.git DanceParty
$ cd DanceParty
$ npm install
$ npm start

Then open http://localhost:3000/ in your browser.

How to Test

The unit tests are powered by chai and mocha.

$ npm test

How to Deploy

I currently have a github pages set up here, so PR your changes and they'll be pushed automagically.

$ npm run deploy                # Deploys the project to GitHub Pages

Learn More


Used boilerplate from react-static-boilerplate with πŸ’–