MoeraOrg / moera-fcm-relay

FCM relay for Moera mobile clients

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FCM Relay For Moera Mobile Clients

Resources

Installation instructions

  1. As prerequisites, you need to have Node.js 18+ and PostgreSQL 9.6+ installed. In all major Linux distributions, you can install them from the main package repository.
  2. Create a PostgreSQL user <username> with password <password> and an empty database <dbname> owned by this user (see detailed instructions).
  3. Go to the project root.
  4. Copy .env file to .env.local and fill database credentials in DATABASE variable.
  5. Put a correct moera-client-android-firebase-account.json file to the project root. It is the Firebase service account private key that you need to download from the Firebase console.
  6. By default, the server runs on port 8101. If you want it to run on a different port, set the PORT variable in .env.local accordingly.
  7. Run yarn install or npm install.
  8. Run yarn start or npm start.

About

FCM relay for Moera mobile clients

License:Apache License 2.0


Languages

Language:TypeScript 94.6%Language:Shell 3.5%Language:HTML 1.4%Language:CSS 0.5%