Go service developed following clean architecture. Centered around the concept of events, provides a REST layer to perform CRUD operations on them.
For a deeper look into the service architecture, including app structure, design decisions, library choices and more take look at ARCHITECTURE.md.
Docker and docker-compose are needed to start up the server.
make up
will build the containers from scratch, starting the DB and, if successful, the server on port 3333.
A .env
file is needed, provided upon request. That said, for testing purposes, something basic like this would work:
SERVER_HOST=localhost
SERVER_PORT=3333
DB_NAME=bastet
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_HOST=postgres
DB_PORT=5432
Some basic curl commands are provided for convenience to actually test the server is operating right.
- Ping:
make ping
- Create an event:
make create-event
- Get an event:
make get-event
- Update an event:
make update-event
- Delete an event:
make delete-event
- Run CRUD:
make all-requests
- Deployment github workflow.