venkataseshaiahudatha / push-notification-api

Node JS API (Using NEST JS) for registering the device and sending push notification using firebase.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NestJS

Push Notification API

This API is used for assigning device to customer and sending notifications.

Technology stack

  • Node JS
  • NestJS framework. It provides a great way to build Node JS app
  • TypeScript
  • Firebase
  • Mongo
  • Testing by using:
    • SuperTest
    • Jest
    • Nock

How to use

$ git clone https://github.com/mukeshrawat02/push-notification-api.git <project>
$ cd <project>
$ npm install

Use one of the following to build and test:

npm run dev        # Run it directly with 'ts' file 
npm run build      # Build the project using the 'tsc' compiler.
npm start          # Run it from converted 'js' file from 'ts'
npm test           # Run unit test cases
npm run test:cov   # Generate test coverage report
npm run test:e2e   # Run end to end test flow

The API will run on default 3000 port which can be change in \src\main.ts For make this working please add your firebase configuration in \config\firebase-configuration.ts

Swagger UI

Swagger is active by default so when server is up you can see the API definition on http://localhost:3000/api

Alt text

About

Node JS API (Using NEST JS) for registering the device and sending push notification using firebase.

License:GNU General Public License v3.0


Languages

Language:TypeScript 99.5%Language:Dockerfile 0.5%