@raha.app/api-server
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Make sure you have gcloud installed

  1. Install gcloud: brew cask install google-cloud-sdk
  2. Initialize gcloud: gcloud init

Running locally

  1. Run server: yarn build && yarn test <path to service account credentials>
  2. If you don't have service account credentials, follow the instructions at: https://firebase.google.com/docs/admin/setup#add_firebase_to_your_app. DO NOT COMMIT THESE CREDENTIALS.
  3. If you receive an error about default application credentials: gcloud auth application-default login

Acquiring Coconut API key

We use Coconut to handle encoding our videos. Coconut requires an API key which we include in the ./src/data/DO_NOT_COMMIT.secrets.config.ts file with the following structure:

{
    "coconutApiKey": <api_key>
}

This file must be present to deploy raha-api or run it locally. Until we have a better key management system, you will have to create this file yourself. Ask @rahulgi for the key.

Deploy Instructions

  1. Deploy: yarn deploy-<prod/test>

Readme

Keywords

none

Package Sidebar

Install

npm i @raha.app/api-server

Weekly Downloads

0

Version

0.1.0

License

Apache-2.0

Unpacked Size

85.2 kB

Total Files

74

Last publish

Collaborators

  • osdiab