The objective of this project is to create a RESTful API in Go lang
to manage the parking lot of a rental agency.
Each car is characterized by
- Model
- Registration
- Mileage
- Available status
- Golang
- MySQL
- GORM (Object Relational Mapping (ORM) library for Golang)
- Gorilla mux (HTTP router)
- Testify (Test toolkit)
Clone this repository to your local machine
git clone https://github.com/abdeel07/backend-go-cars.git
Gorilla mux
go get -u github.com/gorilla/mux
GORM & MySQL Driver
go get -u gorm.io/gorm
go get -u gorm.io/driver/mysql
Testify
go get github.com/stretchr/testify
Create 2 MySQL database
- parking_lot
- parking_lot_test (For the test)
cd handlers_test/
go test