DreadedHippy / hng_task_5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

REST API Video transcription Backend Server

HNG Task 5

This is my submission for task 5 of the HNG internship program

Tools Used

  • Node.js
  • TypeScript
  • express
  • deepgram node sdk

HTTP Response Model

Response

  • status: boolean -> always present (false on error, true on success)
  • message: string -> not always present
  • data: object, array -> not always present

API Routes

  • upload video: POST (/api)
  • stream video: GET (/api/:video)
  • download video: GET (/api/download/:video)

How to use

To use this server, follow the instructions below:

  1. Fork this repository, and create a .env file in the destination folder.

  2. In your newly created .env file, fill in the necessary information.

  • DEEPGRAM_API_KEY: The api key for the deepgram transcription service
  • REDIS_URL: The url for your redis server
  1. With node installed, run npm i to install all required dependencies

  2. With all dependencies installed, run npm start to start the server.

Sample API Request

Notes

  • The server runs on port 8080 by default but you can change that by adding a PORT field in the env file and specifying your preferred port number

About


Languages

Language:TypeScript 100.0%