@raha.app/api-server
v0.1.0
Published
Backend services for Raha.
Downloads
8
Readme
Make sure you have gcloud installed
- Install gcloud:
brew cask install google-cloud-sdk
- Initialize gcloud:
gcloud init
Running locally
- Run server:
yarn build && yarn test <path to service account credentials>
- 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.
- 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
- Deploy:
yarn deploy-<prod/test>