jconroy / heroes

My personal node and react playground for learning and testing things. Follow/use at your own risk.

Home Page:https://hidden-ocean-68398.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

My personal node and react playground for learning and testing things. Follow/use at your own risk.

https://hidden-ocean-68398.herokuapp.com/

License:MIT License


Languages

Language:JavaScript 67.0%Language:CSS 27.6%Language:HTML 5.3%