Skip to content

Masai Truck Application is a web-based application that allows registered users to manage trucks. The application has two types of users: managers and drivers. Managers can add, view, update, and delete trucks. Drivers can only view and update their assigned truck. Users can register and login to the application using their credentials.

Notifications You must be signed in to change notification settings

ChanduDhakad/TruckApplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

TruckApplication

The Masai Truck Application is a web-based application that helps to manage the trucks and their information. The application has three different roles: manager, driver, and guest. The manager can view all the details of the trucks, update or delete them. On the other hand, the driver can view only his own truck details, update or delete them. And the guest can only register themselves into the system.

Tech Stack

  • Java
  • Spring Framework
  • Spring Boot
  • Spring Data JPA
  • MySQL
  • Swagger UI
  • Lambok
  • Maven

Features

  • Users can register themselves into the system as a driver, manager, or guest.
  • Users can log into the system and get a JWT token that is valid for 24 hours.
  • Managers can view all the trucks in the system and their details, update or delete them.
  • Drivers can view only their own truck details, update or delete them.
  • Guests can register themselves into the system.

Modules

  • Login Module
  • User Module
  • Truck Module

Installation & Run

  • Before running the API server, you should update the database config inside the application.properties file.
  • Update the port number, username and password as per your local database configuration.
   server.port=8080

spring.datasource.url=jdbc:mysql://localhost:3306/MasaiTruckDB
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true

API Root Endpoint

https://localhost:8080/
http://localhost:8080/swagger-ui/

About

Masai Truck Application is a web-based application that allows registered users to manage trucks. The application has two types of users: managers and drivers. Managers can add, view, update, and delete trucks. Drivers can only view and update their assigned truck. Users can register and login to the application using their credentials.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages