Skip to content

Latest commit

 

History

History
115 lines (81 loc) · 2.32 KB

README.md

File metadata and controls

115 lines (81 loc) · 2.32 KB

React-based Single-sign-on application

Build Status Dependency Status devDependency Status

Kick-start your new web application based on React and Flux technologies. It also includes Webpack, React hot loader, PostCSS, JSON-server tools for even more rapid development.

NPM Dependencies:

List of all dependencies is presented here

Install

OSX

Install Node.js

Via brew:

brew install node

Via nvm:

brew install nvm
nvm install node
nvm alias default node

Quick start

Clone application as new project with original repository named "react-base"

git clone [email protected]:fs/react-base.git --origin react-base [MY-NEW-PROJECT]

Create your new repo on GitHub and push master into it. Make sure master branch is tracking origin repo.

git remote add origin [email protected]:[MY-GITHUB-ACCOUNT]/[MY-NEW-PROJECT].git
git push -u origin master

Run bootstrap script

bin/setup

Run application

Run app (by default environment is 'development', port is 8000)

npm start

Run app with options

[<options>] npm start
NODE_ENV=development # build app with development environment
NODE_ENV=production # build app with production environment
NODE_ENV=test # build app with test environment
PORT=8000 # run server on 8000 port

Start to use application in browser:

localhost:8000

Run tests and linters

npm test

Code linting tasks

Run javascript linter

npm run eslint

Run stylesheets linter

npm run stylelint

Run all linters

npm run lint

Test tasks

Run karma tests

npm run karma

Credits

React base is maintained by Marat Fakhreev. It was written by Flatstack with the help of our contributors.