This golang REST API was created as a study about Golang concepts and clean architecture.
The garage-api has a method post that allows user to store a car and its features in two different databases.
Every car saved has its insurance value checked in other external api myfakeapi/cars.
There are two GET methods that show information about the cars already registered. The details are fetch concurrently (Goroutines) in externals APIs. Owner information in myfakeapi/users and car image in jsonplaceholder.
- TODO
- Gorilla Mux - Router
- Chi - Router
- Firestore - Firestore
- Postgres - Postgres
- Sqlite3 - Sqlite3
- Testify - Packages for Tests
go build
source .env
export GOOGLE_APPLICATION_CREDENTIALS='/path/to/project-private-key.json'
go test -run NameOfTest
go test service/*.go
make docker-start
make docker-stop
make docker-clean
go run .