Please run bin/init.sh
to make sure you have all the necessary software installed. (script will install any missing critical software)
This project is way over-engineered beyond what something this simple should be. I decided to go overboard by creating wrapper functions & distinct error handlers to show more detail around my thought process around engineering. I am hoping this gives you a much clearer picture of my style & thought process around coding in general than if I had kept it as simple as it should've been
- Run the command
tilt up
(add--stream
flag if you prefer to see the log output in the console)
CTRL + c
- Run the command
tilt down
.- NOTE make sure to remove the persistent volumes with the command
kubectl delete pvc --all
- NOTE make sure to remove the persistent volumes with the command
- Run the command
tilt up snapshotdb
to make sure the Postgres DB is running - Open a new terminal window
- Run the command
go test ./api/...
- NOTE Make sure to shut down the DB instance & clean the pvc
- Run the command
tilt down
. - Run the command
kubectl delete pvc --all
- Run the command
You can find a JSON file you can use in Insomnia (It should also work for Postman) here. It has a collection that can be used to run requests against the running service