- Docker
- Docker Compose
- Start the Database:
docker-compose -f docker/docker-compose.yaml up
- Run the Application:
go run internal/main.go wire_gen.go
The REST API will be available at http://localhost:8080/order.
The GRPC service will be available at localhost:50051.
The GraphQL endpoint will be available at http://localhost:8080/graphql.
Use the api/api.http file to test the different endpoints.
To apply the database migrations, connect to the PostgreSQL container and run:
psql -U user -d orderdb -f migrations/001_create_orders_table.sql