Skip to content

PISE firebase cloud messaging backend for notifications

Notifications You must be signed in to change notification settings

florianPat/pise-fcm-backend

Repository files navigation

PISE FCM-backend microservice on deta

made by FHDW PISE Group 2

Description

Firebase FCM-serve-backend build with nest and deployed to deta

Installation

  1. Clone project.
  2. Install nvm!
  3. Install dependecies:
$ nvm use 14
$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Deployment

Deployment happens through Github Actions.

In case one wants to deploy the code to their own micro:

  1. Install deta-cli:
$ curl -fsSL https://get.deta.dev/cli.sh | sh
  1. Login and create new micro if you do not have one already:
$ deta login
$ deta new --project default --runtime nodejs14 --name pise-fcm-backend
  1. Deploy:
# CI/CD - from a file! ;)
# Run linter, tests, build and deploy
$ npm run deploy
  1. Browse to your url:
# Find url
$ deta details

About

PISE firebase cloud messaging backend for notifications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published