Express & Node.js app
We use airbnb/base style guide
-
nvm use- set correctnodeversion -
npm startruns dev server with watcher and reloading -
npm run start-prodruns prod server locally -
npm run init-dbto create database and insert initial test data -
npm run lintto check code style witheslint,airbnbreact style guide andprettier -
npm run prettifyto just fix style withprettier -
npm run test:with-coverageto test and check coverage -
npm run testto test without coveralls -
npm run deploy-dev-from-localornpm run deploy-prod-from-localto deploy code to staging or production Wir
you should install
gmlocally:
brew install graphicsmagickusage:
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