Skip to content

akarshghildyal/Karya

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Karya

A Spring Boot project to manage users, vendors, and vehicles.

Demo Video

About

Karya implements the following:

  • Registering a New User
  • User Login
  • Vehicle Registration and Management
  • Assigning Sub Vendors
  • User Management

API Endpoints

Endpoint Method Usage
/auth/register POST Register a new user
/auth/login POST User login
/auth/assign-subvendor POST Assign a sub-vendor to a main vendor
/auth/subvendors/{vendorId} GET Get all sub-vendors for a vendor
/vehicles/vendor/{vendorId} POST Add a vehicle for a specific vendor
/vehicles/vendor/{vendorId} GET Get all vehicles for a specific vendor

Folder Structure

karya/
├── .gitattributes
├── .gitignore
├── LICENSE
├── mvnw
├── mvnw.cmd
├── pom.xml
├── README.md
├── .vscode/
│   └── settings.json
├── .mvn/
│   └── wrapper/
│       └── maven-wrapper.properties
├── src/
│   ├── main/
│   │   ├── resources/
│   │   │   ├── application.properties
│   │   │   └── schema.sql
│   │   └── java/
│   │       └── com/
│   │           └── akarsh/
│   │               ├── karya/
│   │               │   └── KaryaApplication.java
│   │               └── auth/
│   │                   ├── service/
│   │                   │   ├── UserService.java
│   │                   │   └── VehicleService.java
│   │                   ├── repository/
│   │                   │   ├── UserRepository.java
│   │                   │   ├── VehicleRepository.java
│   │                   │   └── VendorRepository.java
│   │                   ├── entity/
│   │                   │   ├── User.java
│   │                   │   ├── Vehicle.java
│   │                   │   └── Vendor.java
│   │                   ├── dto/
│   │                   │   ├── AuthResponse.java
│   │                   │   ├── LoginDto.java
│   │                   │   ├── SubVendorAssignmentDto.java
│   │                   │   ├── UserDto.java
│   │                   │   ├── UserRegistrationDto.java
│   │                   │   └── VehicleDto.java
│   │                   ├── controller/
│   │                   │   ├── UserController.java
│   │                   │   └── VehicleController.java
│   │                   └── config/
│   │                       └── SecurityConfig.java
│   └── test/
│       └── java/
│           └── com/
│               └── akarsh/
│                   └── karya/
│                       └── KaryaApplicationTests.java

Key takeaways

Learnt a lot by implementing it, deadline felt very tight, spent 2.5 hours fixing the first issue. Thank you for the opportunity, and thank you for reading! Have a nice day.

About

A Spring Boot project to manage users, vendors, and vehicles.

Resources

License

Stars

Watchers

Forks

Contributors

Languages