Skip to content

Latest commit

 

History

History
57 lines (34 loc) · 1.3 KB

README.md

File metadata and controls

57 lines (34 loc) · 1.3 KB

Project Name

📦 ToDoTurtle API is the notification and deadline API for the ToDoTurtle Android App.

Installation

To install the npm dependencies of the project, follow these steps:

  1. Make sure you have Node.js installed on your machine. If not, you can download it from Node.js website.

  2. Open a terminal or command prompt and navigate to the project directory.

  3. Run the following command to install the npm dependencies:

    npm install .

Setting Up the API keys and files

To set up the SERVER_KEY environment variable as the server key of the Firebase Messaging app, follow these steps:

  1. Get your server api key from firebase messaging

  2. Export it to the same shell instance that you're going to run the app

    export SERVER_KEY=your_server_key_here
  3. Get your Service Account configuration file from google firbase

  4. Save your service account configuration file to: src/project-key.json

Additional Setup

Installing Forever

To install Forever, a tool for running Node.js applications as a service, execute the following command:

sudo npm install -g forever

Usage

The API starts as a service with:

forever start ./src/index.js

You can check out the instance with:

forever list