Skip to content

abdeel07/backend-go-cars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parking lot of a rental agency

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

Technologies Used

  • Golang
  • MySQL
  • GORM (Object Relational Mapping (ORM) library for Golang)
  • Gorilla mux (HTTP router)
  • Testify (Test toolkit)

Installation and Configuration

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

  1. parking_lot
  2. parking_lot_test (For the test)

Test the API

cd handlers_test/
go test

About

The objective of this project is to create a RESTful API in Go lang to manage the parking lot of a rental agency.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages