Skip to content

walkover-ankit/analytics-api

 
 

Repository files navigation

MSG91 Analytics Apis

A backend application for msg91 analytics.

How to Run

You will have to follow some steps to test the API.

1 - Install Node.js

Download and install Node.js. Make sure to download and install the latest stable version (LTS).

https://nodejs.org/en/download/

To check if Node.js was installed succesfully, run the following command in terminal or command prompt:

node --version

You should see an output similar to this:

v18.4.0

It indicates that Node.js is running.

2 - Install the API Dependencies

Open the project folder using the terminal or command prompt, then type the following:

npm i

The command above will install all node modules needed for the API to run. If you are using Linux or MacOS and receive a permission denied message, use sudo.

3 - Set the Environment Variables

cp .env.example .env

4 - firebase-credentials.json

Place your firebase-credentials.json file at the project root

5 - Running the Server

After following all steps above, you are ready to start the server. Type the following in the terminal or command prompt:

npm run dev

This is going to run the application on port 3000. If this port is busy, the API will run in a different port. You can check the output to see in which port the API is running.

Running the Job

npm run dev-job <JOB_NAME>

Running the Consumer

npm run dev-consumer <CONSUMER_NAME>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 98.8%
  • Shell 1.2%