📦 ToDoTurtle API is the notification and deadline API for the ToDoTurtle Android App.
To install the npm dependencies of the project, follow these steps:
-
Make sure you have Node.js installed on your machine. If not, you can download it from Node.js website.
-
Open a terminal or command prompt and navigate to the project directory.
-
Run the following command to install the npm dependencies:
npm install .
To set up the SERVER_KEY
environment variable as the server key of the Firebase Messaging app, follow these steps:
-
Get your server api key from firebase messaging
-
Export it to the same shell instance that you're going to run the app
export SERVER_KEY=your_server_key_here
-
Get your Service Account configuration file from google firbase
-
Save your service account configuration file to: src/project-key.json
To install Forever, a tool for running Node.js applications as a service, execute the following command:
sudo npm install -g forever
The API starts as a service with:
forever start ./src/index.js
You can check out the instance with:
forever list