This is my submission for task 5 of the HNG internship program
- Node.js
- TypeScript
- express
- deepgram node sdk
Response
- status:
boolean
-> always present (false
on error,true
on success) - message:
string
-> not always present - data:
object
,array
-> not always present
- upload video: POST (
/api
) - stream video: GET (
/api/:video
) - download video: GET (
/api/download/:video
)
To use this server, follow the instructions below:
-
Fork this repository, and create a
.env
file in the destination folder. -
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
-
With node installed, run
npm i
to install all required dependencies -
With all dependencies installed, run
npm start
to start the server.
- Use http://localhost:8080 to make API requests on your locally hosted server.
- 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