This was a screening test, the description is in the main.go file.
Need go 1.22 or above.
- clone the repo
go mod tidy
go run main.go
this will run directly in port 9000
curl --location 'localhost:9000/events' \
--header 'Content-Type: application/json' \
--data '{
"title": "test",
"description": "evt description",
"start_time": 1262304000,
"end_time": 1262404000
}'
curl --location 'localhost:9000/events'
curl --location 'localhost:9000/events/{id}'