Backend:
Deployed On:
This backend application is used by the user to record incoming orders and manage Vehicle. In this application, user only can display vehicle and order vehicle rental, and admin can manage vehicle product. This application is built with Golang using the gorilla/mux package for routing. The databases used in this application are PostgreSQL.
- Authentication users with JWT
- CRUD User
- CRUD Vehicle
- CRUD History
- Pagination Vehicle list
- Sort Vehicle
- Search Vehicle
- CLI with Cobra
go mod tidy
go get -u github.com/gorilla/mux
go get -u gorm.io/gorm
go get -u gorm.io/driver/postgres
go run main.go serve
Service | Method | URL |
---|---|---|
Get All | GET | /users/ |
Get By Id | GET | /users/1 |
Create | POST | /users/ |
Update by id | PUT | /users/ |
Delete By Id | DELETE | /users/1 |
Service | Method | URL |
---|---|---|
Get All | GET | /vehicle/ |
Get By Id | GET | /vehicle/1 |
Create | POST | /vehicle/ |
Update by id | PUT | /vehicle/ |
Delete by id | DELETE | /vehicle/1 |
Sort by id ex:desc or asc | GET | /vehicle/all?sort=asc |
Search by name | GET | /vehicle/all?search=vespa |
Get popular by Likes | GET | /vehicle/popular |
Service | Method | URL |
---|---|---|
Get All | GET | /history/ |
Get By Id | GET | /history/1 |
Create | POST | /history/ |
Update by id | PUT | /history/2 |
Delete By Id | DELETE | /history/1 |
Sort by id ex:desc or asc | GET | /history/all?sort=asc |
You can see all the end point here
Backend API : Vehicle - Backend here