项目作者: HMarzban

项目描述 :
nodejs expressjs boilerplate
高级语言: HTML
项目地址: git://github.com/HMarzban/xarboilerplate.git
创建时间: 2020-06-15T07:35:46Z
项目社区:https://github.com/HMarzban/xarboilerplate

开源协议:MIT License

下载



License


Standard - JavaScript Style Guide


Coverage lines

Coverage functions


Coverage branches

Coverage statements

xarboilerplate

NodeJs Expressjs boilerplate

scripts

  1. yarn start # nodemon ./app/server.js
  2. yarn start:pm2 # pm2 start ./scripts/pm2.config.js --only backend-local
  3. yarn test:e2e # jest -c ./jest.config.e2e.js
  4. yarn test:e2e:coverage # jest -c ./jest.config.e2e.js --coverage
  5. yarn test:intg # jest \\.intg.test.js$ --testTimeout=20000
  6. yarn lint # prettier-standard --lint **/*.js
  7. yarn pretty # prettier --write **/*.js
  8. yarn build:prod # docker build -t bolit -f ./scripts/production.Dockerfile .
  9. yarn build:prod:up # docker-compose -f ./scripts/docker-compose.yml up
  10. yarn build:prod:down # docker-compose -f ./scripts/docker-compose.yml down

Tried to use these best methods

JavaScript Style Guide