Monolithic repository services for Tigerhall Kittens services.
- Read Prerequisites.
$ make tidy
$ make cover
To run API test, we need to start all dependencies needed. We provide all dependencies via Docker Compose. Make sure to install Docker Compose before running integration test.
Also, we need to build the docker image for tigerhall-kittens first.
$ make rebuild-server
After that, run all images needed using docker-compose
.
$ docker-compose up
Now that the server is run, we need to migrate our local database first before running the program. Read Database Migration for detail information
$ make migrate-schema url="postgres://postgresuser:postgrespassword@localhost:5432/tigerhall"
$ make migrate url="postgres://postgresuser:postgrespassword@localhost:5432/tigerhall" module=sighting
After you run migration, now the API is ready to be hit. Import [Postman Colletcion](doc/Tigerhall Kittens.postman_collection.json) to postman (or your respective http client) then just hit the API