Code Monkey home page Code Monkey logo

taxi-service's Introduction

taxi-service logo

taxi-service


This is a simple application made for educational and demonstration purposes. Implements authentication by filters based on session. Logs some Authentication information and create/update/delete database operations to console and .log file. Registration of new drivers, managing the relations between cars, drivers and manufacturers and other CRUD operations.
Program has following functionalities:

  • create new Manufacturer
  • display all Manufacturers
  • create new Driver
  • display all Drivers
  • create new Car
  • display all Cars
  • add driver to car
  • list all cars by driver

You can access all of them from the main /index page
after registering as a new driver at /drivers/add page
and signing in at /drivers/login page (to which you will be redirected if you will try to access pages that are not allowed for unsigned drivers).
After that you will have access to all the pages and functionality.

Screenshots

screenshot1 screenshot2 screenshot3


Architecture

  1. DAO - Data access layer
  2. Service - Application logic layer
  3. Controllers - Presentation layer

Technologies

  • Java 11
  • Apache Maven
  • Apache TomCat
  • Apache Log4j2
  • MySQL
  • JDBC
  • Http Servlet
  • JSTL
  • JSP
  • HTML, CSS, XML, Bootstrap

How to run a project

WARNING Installed TomCat and MySQL is compulsory for this project.

  1. Add a tomcat local configuration in IntelliJ (Tomcat server - local, deployment - war exploded, application context: /)
  2. Run SQL script located in src/main/resources/init_db.sql to set up a database for this project.
  3. Configure src/main/java/taxi/util/ConnectionUtil.java with your URL, USERNAME, PASSWORD and JDBC_DRIVER.
  4. In the src/main/resources/log4j2.xml at line 7 you also need to set ABSOLUTE_PATH to your .log file.
  5. Import Maven dependency from pom.xml.

Demo

https://salty-citadel-80806.herokuapp.com/

Login: root

Password: 1234


Your database should look like this

shema DB


Contacts

My LinkedIn

taxi-service's People

Contributors

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