Git Product home page Git Product logo

travel_agency_spring's Introduction

Travel Agency Spring application

Stack of technologies:

  1. Spring Framework (Spring MVC, Spring Security, Spring Core, Spring Test)
  2. Hibernate
  3. MySQL
  4. SLF4J
  5. Templating engine - JSP/JSTL (+ Twitter Bootstrap library for a consistent UI)
  6. Lombok (to get rid of boiler-plate code)
  7. Maven
  8. jUnit 4
  9. H2 in-memory database (just for testing)

There are three roles in application - customer, manager and admin.

Responsibility of Admin is to toggle management status of users. It can be accomplished at /admin endpoint, that permits only requests from one IP address, mentioned at security.properties file.

Manager can view all the customers, and their orders as well as adding new hotels and attach rooms to them.

Customer can book view the hotels and book rooms in a certain room, that is not busy at mentioned period.

Instruction:

  1. In a root package of the project there is a file init.sql. It is an SQL script that creates schema pictured below.

Database schema visualisation:

Alt text

  1. In the resources package you will see db_example.properties file. It's an example of db.properties file that must be created in the same package.

  2. Just for convenience I have added TestDBConnection class, that expects JDBC url, username and password to verify connection.

  3. If you wish, you can execute data.sql script as well to prepopulate roles and countries in a database.

Application has been successfully run and manually tested using Tomcat server.

travel_agency_spring's People

Contributors

vorobii-vitalii 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.