Code Monkey home page Code Monkey logo

auto-service-app's Introduction

🚘 Auto-Service-App 🚘

This server application enables clients to send HTTP requests, such as GET, POST, PUT, and DELETE, and handles them accordingly. The application stores the received data in a PostgreSQL database, allowing efficient organization and storage of information.

With this application, various operations can be performed on the database, including creating new records, updating existing records, deleting records, and retrieving data from the database using HTTP requests.

For the convenience of development and API documentation, Swagger and SpringDoc are utilized.

▶️Video presentation Auto-Service-App. LINK

The following principles were followed during the development of the program:

  • REST API
  • SOLID principles

Project based on 3-layer architecture:

  • Presentation layer (controllers)
  • Application layer (services)
  • Data access layer (repositories)

📄 Functionalities

  • POST: /masters - Creation of the "Master" entity
  • PUT: /masters/{id} - Editing entity "Master" data
  • GET: /masters/{id}/orders - Receiving master's orders
  • GET: /masters/{id}/salary - Calculation and issuance of wages to the master
  • POST: /cars - Creation of the "Car" entity
  • PUT: /cars/{id} - Editing entity "Car" data
  • POST: /car-owners - Creation of the entity "Owner of the Machine"
  • PUT: /car-owners/{id} - Editing the data of the entity
  • GET: /car-owners/{id}/orders - Get this customer's orders
  • POST: /orders - Creation of the "Order" entity
  • POST: /orders/{orderId}}/goods/{goodsId} - Adding "Goods" to the "Order" entity
  • PUT: /orders/{id} - Editing entity data
  • PUT: /orders/{id}/{newStatus} - Editing the status of the "Order"
  • GET: /{Id}/calculatePrice - Calculation of the cost of the "Order"
  • POST: /maintenances - Creation of the "Maintenances" entity
  • PUT: /maintenances/{id} - Editing entity "Maintenances" data
  • PUT: /maintenances/{id}/{newStatus} - Editing the "Maintenances" status
  • POST: /goods - Creation of the entity "Goods"
  • PUT: /goods/{id} - Editing entity "Goods" data

📦Package Structure

  • controller - contains controllers for endpoints
  • dto - wrapper for model objects to unify the requests and responses in controllers
    • mapper - converts model objects to DTO objects
  • repository - data access layer (repository) that calls CRUD methods in the database
  • model - contains models for the database
  • service - contains services that call repositories and the Authentication class

🛠 Technologies 🛠

  • Java 17
  • Apache Maven 3.10.1
  • Apache Tomcat 9.0.73
  • PostgreSQL 42.5.4
  • Spring:
    • Boot 3.0.6
    • Data Jpa 3.0.6
    • Web Mvc 6.0.8
  • Liquibase-core 4.17.2
  • lombok 1.18.26
  • Hibernate 6.1.7.Final
  • Swagger UI
  • SpringDoc 2.1.0
  • Checkstyle Plugin 3.1.1

💻How to Run and Test

⚠️Important: You must have Docker installed. If it is not installed, please download it from the website link and proceed with the installation.

  • Clone the repo on GitHub
  • Run docker client
  • In the terminal, run the command: docker-compose up
  • Use the address http://localhost:6868/swagger-ui/index.html#/ to access the documentation.

Also, you can use my Postman request collection for testing: LINK

Contacts

If you have any questions or suggestions, please feel free to contact me via My LinkedIn I am open to new opportunities as a Junior Java Developer.

auto-service-app's People

Contributors

galubagsv avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.