Skip to content
/ react-boilerplate Public template

This starter kit is designed to get you up and running with a bunch of awesome front-end technologies.

Notifications You must be signed in to change notification settings

nanlabs/react-boilerplate

Repository files navigation

React Boilerplate

Main Validation Deployment to GitHub Pages License: MIT

This project was generated using create-awesome-node-app. DON'T USE THIS TEMPLATE AS IT! Generate yours using the command and following the options in the interactive menu. Check the docs for more information!

Quickstart

fnm use
npm install
npm run start

Useful resources

Development

While developing, you will probably rely mostly on npm run start; however, there are additional scripts at your disposal:

npm run <script> Description
dev Serves your app at for local development
test Runs unit tests with Jest. See testing
test:watch Runs test in watch mode to re-run tests when changed
lint Lints the project for potential errors
lint:fix Lints the project and fixes all correctable errors

Production

Generate production files running

npm run build

Generate and serve production files running

npm run serve

Available scripts:

npm run <script> Description
preview Serves your app using your production ready setup (.env.production and NODE_ENV equals to production)
build Builds the application to dist/

Testing

To add a unit test, create a .test.js file anywhere inside of src/. Jest will automatically find these files.

Contributing

You can report bugs, request features and create Pull Requests in the Create-Node-App/react-extensions repository!