Video-Manager is a service that helps to manage video annotations
https://documenter.getpostman.com/view/6225567/2s8ZDcyKSF
- postgresql://postgres:secret@0.0.0.0:5432/video-manager?sslmode=disable
To start the application in dev mode, please run:
git clone https://github.com/tobslob/video-manager.gitcd video-manager go install go mod tidyInstall PostgreSQL on local machine using the following command:
docker pull postgres
## 1. We will create a local folder and mount it as a data volume for our running container to store all the database files in a known location.
mkdir ${HOME}/postgres-data/
## 2. run the postgres image
docker run -d --name dev-postgres \
--restart=always \
-e POSTGRES_PASSWORD=secret \
-e POSTGRES_USER=postgres \
-e POSTGRES_DB=video-manager \
-v ${HOME}/postgres-data/:/var/lib/postgresql/data \
-p 5432:5432 postgres
## 3. check that the container is running
docker ps
docker compose upApplication is ready to receive connection @ http://localhost:8080## API Documentation
https://documenter.getpostman.com/view/6225567/2s8ZDcyKSF## API-ENDPOINTS
- V1
`- POST /api/v1/users Create user account`
`- POST /api/v1/users/login Login a user`
`- POST /api/v1/videos Create a video`
`- GET /api/v1/videos/<:id> Get a Annotation`
`- DELETE /api/v1/video/<:id> Delete a video`
`- POST /api/v1/annotations Create a video annotation`
`- GET /api/v1/annotations/<:id> Get a Annotation`
`- GET /api/v1/annotations/<:video_id>?page_id=1&page_size=5 Get A video Annotations`
`- DELETE /api/v1/annotations/<:id> Delete Annotation`
`- PATCH /api/v1/annotations/<:id>/<:video_id> Update an annotation`Use the following command
docker pull public.ecr.aws/v6s3m2h0/video-managerdocker run -p 8080:8080 public.ecr.aws/v6s3m2h0/video-managerApplication is ready to receive connection @ http://localhost:8080