Skip to content

depri11/vehicle

Repository files navigation

Vehicle Rental Backend

Golang.jpg

More about Golang

🖥️ Tech Stack

Backend:

golang  postgresql  jwt 

Deployed On:

heroku 

Description

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.

Feature

  • Authentication users with JWT
  • CRUD User
  • CRUD Vehicle
  • CRUD History
  • Pagination Vehicle list
  • Sort Vehicle
  • Search Vehicle
  • CLI with Cobra

Install Package

  go mod tidy

Gorilla/mux

  go get -u github.com/gorilla/mux

Gorm and Driver Postgres

  go get -u gorm.io/gorm
  go get -u gorm.io/driver/postgres

Run Server

  go run main.go serve

End Point

Users

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

Vehicle

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

Historys

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

FrontEnd Repository

Backend API : Vehicle - Backend here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages