Event management API
How to build and run the API?
- First copy and adjust contents of
.env.example
to.env
file - Run
docker-compose build
- Run
docker-compose up -d
- SSH into the database container called
db
and follow the next steps:- mysql -u root -p
- enter the password
- run
use api
- copy and paste the content of api.sql file
- To generate a JWT token run
go run scripts/main.go jwt
- After that's done send requests using Postman or any other client of choice
- URLs and example request bodies for Postman are available in postman_example.md
How to run the integration test?
- Run the following command
cd pkg/api/handlers/meetings
- Run
go test