0.1.0 • Published 7 years ago

@raha.app/api-server v0.1.0

Weekly downloads
2
License
Apache-2.0
Repository
-
Last release
7 years ago

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>