GithubHelp home page GithubHelp logo

ed-science / hotel-broker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elzawawy/hotel-broker

0.0 1.0 0.0 7.34 MB

A Node.js & SQL web-based application for hotel reservation, that acts a broker between hotels and customers.

License: MIT License

JavaScript 58.84% CSS 0.10% HTML 10.14% TSQL 30.93%

hotel-broker's Introduction

Hotel Broker

A Node.js web-based application hotel reservation system, that acts a broker between hotels and customers.
This team project was developed as the Database Systems course final project in Fall 2018/2019 Offering.

Overview

A Hotel reservation system is one that allows for users to reserve rooms on hotels online, browse the hotels. Our system may be used by multiple brokers, multiple hotel owners and multiple users. During planning phase, we assumed that a Broker can own a hotel or reserve a hotel as well as the owner may book a hotel room (maybe he owns a hotel in Paris, but fancies a vacation in London).

We have built the ER-Diagram by breaking everything down to its core meaning in the physical world and doing our best to fit it with its useful data in our miniworld. The ER/Relational and normalization figures were created via google’s tool draw.io.


Database Design

This is a database course final project, so obviously the database design is the most important aspect of the project. Three steps are included here, we start by showing our ER-Diagram or the conceptual modeling. We then move to the relational model converting it from the ERD and finally we normalize it several levels to reach the normalized relational model we implement.

Step 1: Conceptual Modeling

Step 2: Relational Modeling

Step 3: Normalization of Relational Model


Web Application Implementation

We list below our core choices to build the web-based application:

  • Used Node.js as an application server. [Fast, Scalable, and reliable]
  • Used MySQL as a SQL database server. [SQL Choice was obvious since one of the project goals was to practice relational models]
  • Used Ejs as a templating engine for the frontend. [Easier choice when it comes to frontend since this was not a main learning goal]

Next, we list the file structure of the application for convience:

├── backend
│ ├── db
│ │ ├── Queries
│ │ │ ├── DatabaseDefinition
│ │ │ ├── HotelTable
│ │ │ ├── RatesRelationTable
│ │ │ ├── ReservationTable
│ │ │ ├── RoomTable
│ │ │ └── UserTable
│ │ ├── QueryHandlers
│ │ │ ├── DatabaseDefinitionHandler
│ │ │ ├── Helpers
│ │ │ ├── HotelTable
│ │ │ ├── RatesRelationTable
│ │ │ ├── ReservationTable
│ │ │ ├── RoomTable
│ │ │ └── UserTable
│ │ └── seed
│ │ ├── hotelRooms
│ │ └── reservations
│ ├── routes
│ └── translations
└── views
├── pages
│ └── CSS
└── partials
└── CSS

Lastly, we mention that we have built wire-frames for the whole website design taht we worked on and it can be found in this folder.

Team Acknowledgments


Made with ❤️

hotel-broker's People

Contributors

amramadan avatar ramikhafagi96 avatar ismailelyamany avatar mohamedtaarek avatar dependabot[bot] avatar shieldfysecurity avatar

Watchers

James Cloos 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.