Skip to content

BusyhinD/taxi-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš– Taxi-Service πŸš–

Project description:

The Taxi-Service project is a Java web application that allows users to manage taxi services, including creating and managing manufacturers, cars, and drivers.

  • The project uses JDBC with RDBMS to store and retrieve data, and Java Servlet API and JSP (JavaServer Pages) for web development, with Tomcat as the web server.
  • Specifically, the project was designed to follow SOLID principles of object-oriented programming. It implements the Dependency Injection principle by field injection. This allows the project to decouple its components and to make them more testable and reusable.

πŸ”Ž Features

The following features have been implemented in the project:

Manufacturers

  • Create a new manufacturer with a name and country.
  • View a list of all manufacturers in the system.

Cars

  • Create a new car with a specific manufacturer, and model.
  • Assign a driver to a specific car.
  • View a list of all cars in the system, with information about their manufacturer, model, and assigned drivers.

Drivers

  • Register as a new driver with a username, password, and license number.
  • Authenticate as a driver with a valid username and password.
  • View a list of all cars assigned to the current driver.

πŸ› οΈ Getting Started

  1. To run the project, you will need to have the following software installed on your system:

    • Java Development Kit (JDK) 11 or later.
    • Apache Maven 3.6.0 or later.
    • MySQL 8.0 or another RDBMS.
    • Tomcat 9.0 or another web-server.

Note: You can download and install these software packages by following the instructions on their respective websites.

Note: Followed steps actually for the Tomcat web server if you will use another you must deploy the project according to your web server.

  1. After installing the required software, you can download the project source code from the GitHub repository:
git clone https://github.com/BusyhinD/taxi-service
  1. To configure the project, you need to edit the ConnectionUtil class (in the util project folder) to pass the login, password, your database URL, and driver for your database management system.

  2. Then, you can build the project using Maven:

cd taxi-service
mvn package
  1. This will create a WAR (Web Application Archive) file in the target directory, which you can deploy to Tomcat:
cp target/taxi-service.war $CATALINA_HOME/webapps
  1. All the SQL queries required to create the database schema and tables for the project can be found in the init_db.sql file (in the resources project folder).
  2. Finally, you can start Tomcat (or your web-server) and access the application by navigating to http://localhost:8080/taxi in your web browser.

β˜• Conclusion

That's it! With the Taxi-Service project, you can manage your taxi services easily and efficiently. If you have any questions or issues with the project, please don't hesitate to contact me.