made by FHDW PISE Group 2
Firebase FCM-serve-backend build with nest and deployed to deta
- Clone project.
- Install nvm!
- Install dependecies:
$ nvm use 14
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Deployment happens through Github Actions.
In case one wants to deploy the code to their own micro:
- Install deta-cli:
$ curl -fsSL https://get.deta.dev/cli.sh | sh
- Login and create new micro if you do not have one already:
$ deta login
$ deta new --project default --runtime nodejs14 --name pise-fcm-backend
- Deploy:
# CI/CD - from a file! ;)
# Run linter, tests, build and deploy
$ npm run deploy
- Browse to your url:
# Find url
$ deta details