This service is responsible for handling GCP trafic (uploading, downloading, etc.), transcoding and streaming. The staging and main branches are deployed to GCP Cloud Run.
- Staging: https://video-service-staging-x7rgvjso4a-ew.a.run.app/
- Main: https://video-service-x7rgvjso4a-ew.a.run.app/
- .env file with the following variable(s):
GOOGLE_APPLICATION_CREDENTIALS=<path to service account key>
- .gcp_credentials.json (service account key).
- Go should be installed on your machine.
- (Optional) GoLand IDE.
- Open project in GoLand.
- Insert .env file in the root of the project.
- Insert .gcp_credentials.json in the root of the project.
- Run the following command in the terminal:
go run ./cmd/server/main.go
- The server should be up and running.
- Run the following command in the terminal:
go run ./cmd/server/main.go
- Build the image:
docker build -t <image-name> .
- Run the image:
docker run -p 8080:8080 <image-name>
The service should be up and running on port 8080.
- This service is desgined to work with Educado's backend.
- Description of routes (to be added)
- For some reason the service cannot transcode when deployed to GCP. It works fine locally, both containerized and not containerized.
- Shout out to Carl Ryskov Aagesen for being a great mentor.