To run the project, execute the command:
docker-compose --profile prod up --build
App will be available at the address http://localhost:8080.
If the default port conflicts with other services on your system, you can modify it in the .env file.
To run in development mode, execute the command:
docker-compose --profile dev up --build
In development mode, additional features are available:
- Debugging Go code (port 2345)
- Hot reload for the backend using Air
- Hot reload for the frontend.
This app allows you to:
- View videos and JSON data uploaded via the
UPLOADbutton in thesource list. - Create, view, and delete events.
- Set the cursor to the desired position in the video where you want to start the event.
- Click the
CREATE EVENTbutton. - Navigate to the timestamp where you want to end the event and click the
SET END TIMEbutton. - In the modal window that appears:
- Enter the name and type of the event.
- Click
CREATE.
To get a list of events, send a GET request to the /events endpoint.
curl -X GET http://localhost:8080/api/events
Filter events by type:
curl -X GET http://localhost:8080/api/events?type=danger
