GithubHelp home page GithubHelp logo

tomasz3976 / car-rental-project Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 5.0 212 KB

Car Rental Project Using Spring Boot And MySQL

Java 100.00%
java spring-boot lombok mockito spring-security mysql-database jwt-token spring-web spring-mvc spring-data-jpa junit-5

car-rental-project's Introduction

Car Rental Project

A Web Application that acts as a car rental company. The user can view the available cars, then pay for the access to the selected package, and finally pick up his car. The main reason for me to create this application was to learn Junit and Mockito testing.

Used Tools

  • Java 17
  • Spring Boot v2.5.5
  • Maven v3.8.2
  • MySQL Community Server v8.0.27
  • Spring Data JPA
  • Spring Web MVC
  • Spring Security with JWT
  • Lombok
  • JUnit 5
  • Mockito

Requirements

For building and running the application you need:

How To Run

  1. Install MySQL
  2. Execute command git clone https://github.com/Tomasz3976/car-rental-project.git
  3. Execute command cd car-rental-project
  4. Configure datasource in main/resources/application.yml
spring:
  datasource:
    url: jdbc:mysql://localhost:3306/carrentaldb
    username: username
    password: password
  1. Configure datasource in test/resources/application.yml
spring:
  datasource:
    url: jdbc:mysql://localhost:3306/carrentaltestdb
    username: username
    password: password
  1. Execute command mvn clean install
  2. Execute command mvn spring-boot:run
  3. The server is running on localhost:8080

To login, enter the username and password for the account with selected role:

Role Username Password
User user user
Manager manager manager
Admin admin admin

Explore Rest APIs

To explore documentation, run the application and go to http://localhost:8080/swagger-ui.html

car-rental-project's People

Contributors

tomasz3976 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.