Skip to content

A service extracted from Aerodoc-Node - which provides the functionality for the push configuration.

Notifications You must be signed in to change notification settings

cfoskin/push-configuration-service

Repository files navigation

push-configuration-service

This is the backend push configuration service for the Aerodoc Node.js Microservices project.

Other services:

Lead Service: https://github.com/cfoskin/lead-service

Sales Agent Service: https://github.com/cfoskin/sales-agent-service

Aerodoc Client: https://github.com/cfoskin/aerodoc-client

API Gateway on Dockerhub: https://hub.docker.com/r/cfoskin/nginx-proxy-local/

API Docs

The API documentation is implemented using Swagger UI and can be found at:

    "serverurl/aerodoc/push-configuration-service/docs"

Logging

Logging is provided by Winston and uses a Loggly transport to aggregate the logs - A free Loggly account must be created prior to running any of the Aerodoc services. The LOGGLY_TOKEN environment varible must be set before running.

eg: export LOGGLY_TOKEN=YOUR_LOGGLY_TOKEN

Running

Docker Compose:

To run service with all other backend services use Docker Compose with the docker-compose.yaml file. Note: To seed the system with the sales agents data, run the application from the sales agent service, otherwise see swagger documentation for how to post sales agents to RESTful endpoints.

    docker-compose up

npm:

To run service on its own Mongo needs to be installed and running.

Environment Variables:

MONGO_URL must be set eg: export MONGO_URL=mongodb://localhost:27017/aerodoc

SERVER_PORT must be set eg: export SERVER_PORT=3000

Install dependencies

npm install

Start the server

npm start

Running Tests

npm test

Running Coverage

npm run coverage

About

A service extracted from Aerodoc-Node - which provides the functionality for the push configuration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published