- VS Code
- GitPod
- Github
- MongoDB
- Docker & Docker Compose
- Moleculer Framework (Node.js)
- DigitalOcean for Deploy
- Requirements: docker, docker-compose
docker-compose up -d
- Server will be running on localhost:3000
- Duplicate example.env to .env
- Insall packages using
npm i
- Run
npm run dev:local
to start server on localhost:3000
- Create Account in GitPod and create new workspace with this repo.
- Duplicate example.env to .env
- Gitpod will automatically start the services up and live url will be available.
- There are 2 main entities: User & Media.
- You need to create a user account and login to manage media.
- Using Public collection you can create/login to the system, (automatically the auth token will be set to postman environment in use)
- Media collection has all the endpoints required to manage media, Upload, List, Get Info, Delete, Toggle Public Status. And media operations can be performed using the media name which is unique for an user.
- Conversions sub collection will help you list available conversions for a given media name and using the Convert api you can initiate the conversion process.
- Once conversion is complete the media can be fetched using the File collection.
- If a media is set to public, the Get Info api of media will return a url using which can be publicly accessible.