educado-transcoding-service

module
v0.0.0-...-c7bae88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2024 License: GPL-3.0

README

Educado Transcoding Service

Overview

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.

Getting Started

Prerequisites
  • .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.
Installation
  • 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.
Quickstart
  • Run the following command in the terminal:
go run ./cmd/server/main.go
Docker
  • 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.

Usage

  • This service is desgined to work with Educado's backend.

API Reference

  • Description of routes (to be added)

Known Issues

  • For some reason the service cannot transcode when deployed to GCP. It works fine locally, both containerized and not containerized.

Acknowledgments

  • Shout out to Carl Ryskov Aagesen for being a great mentor.

Directories

Path Synopsis
api
cmd
internals
gcp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL