Skip to content

Latest commit

 

History

History
65 lines (41 loc) · 1.28 KB

README.md

File metadata and controls

65 lines (41 loc) · 1.28 KB

Heroes

Build Status

My personal node and react playground.

View the app at https://hidden-ocean-68398.herokuapp.com/

Installation

git clone <repo>

cd <cloned repo dir>

npm install

Starting a server

Quickest method is to use:

npm run start

Alternative method is to:

npm run build

npm run serve

Then browse to http://localhost:3000

Test

Unit tests and linting can be performed by simply running:

npm test

To simply run unit tests:

./node_modules/mocha/bin/mocha

To simply lint:

./node_modules/.bin/eslint --ext .js --ext .jsx src

Credit

Based off https://github.com/lmammino/judo-heroes

Notes

  • TravisCI unit tests are setup with Mocha Test Framework and Chai assertion library.
  • Additionally the src js/jsx are linted with ESLint
  • I seen lots of people are starting to use Jest - seems like it is an easier test framework to grok (but some sites suggest it is slower to run and less polished).
  • Auto deploys from Github to a free Heroku account.