Skip to content

xqstencils/node-mocha-chai-react-server

Repository files navigation

Node Mocha Chai React Server stencil

This is a stencil for basic react server base on node and mocha.

Current Status:

Alpine 3.7 Nginx 1.14 License MIT Docker Pulls Docker Stars Docker image Build Status

Features:

  • Support Publish your package to git & npm with ci.
  • Support CircleCi for pipeline.
  • Support ES7 & ES6 syntax.
  • Support ESlint to check the code.
  • Support Mocha & Chai to test your code.
  • Support Yarn audit to do security check for dependencies.
  • Support Build docker image and push to docker hub.
  • Support Deploy app to Heroku.

Development:

Setup

Clone this stencil and replace @xq-stencil/node-mocha-chai-react-server with your package name.

$> git clone [email protected]:xqstencils/node-mocha-chai-react-server.git

Install dependencies

$> yarn install

Compile code

$> yarn babel
# or run babel in watch mode
$> yarn babel:watch

Generate distribution code

$> yarn build

Linting

$> yarn lint

Testing

$> yarn test
# or run the test in watch mode
$> yarn test:watch

Security check

$> yarn audit

Setup CI

  • Update the circleci config
  • Setup the ci into circleci site.

Start in local

$> yarn start

Start with docker

$> docker pull xqstencils/node-mocha-chai-react-server
$> docker run --name node-mocha-chai-react-server -d -p 80:80 xqstencils/node-mocha-chai-react-server

Access the online site

$> open https://node-mocha-chai-react-server.herokuapp.com

License

node-mocha-chai-react-server is released under the MIT license.

About

Node mocha chai react server

Resources

License

Stars

Watchers

Forks

Packages

No packages published