API for Verticals project.
Frontend part can be found here.
All server configuration takes place in the .env file. You can create your own configuration using the .env.example file as a template.
deploy.sh - generates SSL certificates for nginx using certbot and nginx configs for serving services (backend, doc, grafana, prometheus, cdn) and runs rebuild.sh.
rebuild.sh - builds a new Docker image and restarts all docker services.
start.sh - runs inside the Docker container. Applies migrations and runs pm2 in production mode.
API - backend.verticals.xom9ik.com
API Docs - doc.backend.verticals.xom9ik.com
Grafana - grafana.backend.verticals.xom9ik.com viewer:viewer123
Prometheus - prometheus.backend.verticals.xom9ik.com
CDN - cdn.verticals.xom9ik.com
Clone repo & install dependencies
$ git clone https://github.com/xom9ikk/verticals-backend.git
$ npm iRun pm2 in watch mode and serve static from uploads folder. dev server will run at http://localhost:3000
$ npm run devBuild a dependency graph of modules inside the app. The outcome will be located in the graph.svg file.
$ npm run graphRun e2e tests.
$ npm run testRun e2e tests in watch mode.
$ npm run test:watchRun code coverage analysis.
$ npm run test:coverageRun mutation testing with stryker.
$ npm run test:stryker