Express & Node.js app
We use airbnb/base
style guide
-
nvm use
- set correctnode
version -
npm start
runs dev server with watcher and reloading -
npm run start-prod
runs prod server locally -
npm run init-db
to create database and insert initial test data -
npm run lint
to check code style witheslint
,airbnb
react style guide andprettier
-
npm run prettify
to just fix style withprettier
-
npm run test:with-coverage
to test and check coverage -
npm run test
to test without coveralls -
npm run deploy-dev-from-local
ornpm run deploy-prod-from-local
to deploy code to staging or production Wir
you should install
gm
locally:
brew install graphicsmagick
usage:
npm run test:subset -- /auth
- to only run auth tests
npm run test:subset -- /api/storage
- to only run storage tests
npm run test:subset -- /utils
- to only run utils tests
- use
git submodule update --init