A backend application for msg91 analytics.
You will have to follow some steps to test the API.
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.
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.
cp .env.example .env
Place your firebase-credentials.json file at the project root
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.
npm run dev-job <JOB_NAME>
npm run dev-consumer <CONSUMER_NAME>