An open API service indexing awesome lists of open source software.

https://github.com/hmarzban/xarboilerplate

nodejs expressjs boilerplate
https://github.com/hmarzban/xarboilerplate

e2e-tests expressjs jest nodejs-mongodb nodejs-server

Last synced: 3 months ago
JSON representation

nodejs expressjs boilerplate

Awesome Lists containing this project

README

        


License

Standard - JavaScript Style Guide

Coverage lines

Coverage functions

Coverage branches

Coverage statements

# xarboilerplate
NodeJs Expressjs boilerplate

# scripts
```bash
yarn start # nodemon ./app/server.js
yarn start:pm2 # pm2 start ./scripts/pm2.config.js --only backend-local
yarn test:e2e # jest -c ./jest.config.e2e.js
yarn test:e2e:coverage # jest -c ./jest.config.e2e.js --coverage
yarn test:intg # jest \\.intg.test.js$ --testTimeout=20000
yarn lint # prettier-standard --lint **/*.js
yarn pretty # prettier --write **/*.js

yarn build:prod # docker build -t bolit -f ./scripts/production.Dockerfile .
yarn build:prod:up # docker-compose -f ./scripts/docker-compose.yml up
yarn build:prod:down # docker-compose -f ./scripts/docker-compose.yml down

```

## Tried to use these best methods

- [Node.js Best Practices](https://github.com/goldbergyoni/nodebestpractices)
- [javascript testing best practices](https://github.com/goldbergyoni/javascript-testing-best-practices/)

Feel free to fork it and/or contribute if you’d like :)

[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)