This is a personal project I started to improve my Go skills in a backend sense, including:
- net/http
- gorilla/mux
- squirrel (pending)
- Test Driven Development (TDD)
- CI/CD (pending)
It firstly consists in a product CRUD application, but would like to do expand it in the future (here)
docker run -it -p 5432:5432 -e POSTGRES_PASSWORD=openpgpwd -d postgres
cd src && go test -v
Output should be like this:
=== RUN TestEmptyTable
--- PASS: TestEmptyTable (0.00s)
=== RUN TestNonExistentProduct
--- PASS: TestNonExistentProduct (0.00s)
=== RUN TestCreateProduct
--- PASS: TestCreateProduct (0.00s)
=== RUN TestRetrieveProduct
--- PASS: TestRetrieveProduct (0.00s)
=== RUN TestUpdateProduct
--- PASS: TestUpdateProduct (0.00s)
--- FAIL: TestUpdateProduct (0.00s)
=== RUN TestDeleteProduct
--- PASS: TestDeleteProduct (0.00s)
PASS
cd src && go run .
cd src && go build
, then run /src/src.exe