push-notification-api
push-notification-api copied to clipboard
Node JS API (Using NEST JS) for registering the device and sending push notification using firebase.
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
3000port which can be change in\src\main.tsFor 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