Skip to content

babajka/babajka-backend

Repository files navigation

Node.js Backend App for Wir.by

code style: prettier Coverage Status StackShare

Express & Node.js app

We use airbnb/base style guide

scripts

  • nvm use - set correct node 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 with eslint, airbnb react style guide and prettier

  • npm run prettify to just fix style with prettier

  • npm run test:with-coverage to test and check coverage

  • npm run test to test without coveralls

  • npm run deploy-dev-from-local or npm run deploy-prod-from-local to deploy code to staging or production Wir

development tips

gm

you should install gm locally:

brew install graphicsmagick

selective testing

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

submodules

  • use git submodule update --init