For this Alchemy Code Lab assignment, we were tasked with rewritting any previous lab in a new http framework. Our team wanted a bigger challenge, so we rewrote the assignment in Go. We got permission to do this, but only if we met the other requirements, which included making the existing JS tests pass and structuring our code to have multiple controllers and db models.
- Clone repo to local system.
- Copy and update
.env
file. - In the Command Line:
go get github.com/gorilla/mux
go get github.com/joho/godotenv
go get github.com/lib/pq
- Execute:
go run main.go
- Test:
go test -v
- Building and Testing a REST API in Go with Gorilla Mux and PostgreSQL - Kulshekhar Kabra
- Languages/Packages:
- Helpful Links: