A simple web-application that supports authentication and registration.
It is based on 3 models: Manufacturer
, Car
and Driver
, on which you can perform basic CRUD
operations.
They are interconnected by the following relationships:
Car
->Manufacturer
: EveryCar
is associated with aManufacturer
;Driver
<-->Car
: EveryDriver
is associated with aCar
and vice versa.
App follows a three-tier architecture by separating presentation, application, and data tiers:
Controller
: handles incoming requests by providing an interface to interact with a user, invokes services to process requests, and displays a response;Service
: handles the business logic of the app;DAO
: manages and stores the information given by theService
layer.
- Register as a driver;
- Log in as a driver;
- Create/delete a
Manufacturer
; - Create/delete a
Car
; - Create/delete a
Driver
' - Link
Driver
toCar
' - Display all the
Manufactures
; - Display all the
Cars
with all the linkedDrivers
; - Display all the
Cars
linked with the current authenticatedDriver
; - Display all the
Drivers
.
- JDK 11
- Maven 3.8.6
- JDBC
- MySQL 8.0.22
- Tomcat 9.0.50
- Servlet 4.0.1
- JSP
- JSTL 1.2
- Clone the project;
- Set up DB by using the
resources/init_db.sql
script; - Edit
ConnectionUtil
class with valid path and credentials; - Configure Tomcat and run the app;
🟢 App is also available by the link!