Code Monkey home page Code Monkey logo

hotel_management's Introduction

Structure:
  1. core - contain core django settings
  2. users - contain user model for admin/receptionist/customers
  3. hotels - contain functionality for hotel management
Why Customer data wasn't stored in User table?

The application is not customer centric, it is receptionist centric. So, the customer is not going to register himself before coming to hotel and it would also be complex for receptionist to first create customer and then link it to booking table. We can do automatic linking of customer details to user model for future use but that is currently unnecessary to the requirements.

Due to above fact, also assuming that 1 customer would book 1 room. If a customer books multiple room in current db design then we are going to need customer data in user model to prevent redundancy in booking table.

####Things that could have been done better with more time

  1. CSS
  2. Validation on user submitted data. As of now, it is assumed that user will enter correct data.
  3. Docker implementation. Although I have previously done docker implementation for similar project: https://github.com/Waterbyte/dockerizedLoanSystem
  4. Edit Room and Edit Room Type
  5. Multiple images for hotel
  6. Code grouping in separate files.

####Reproduction steps:

  1. Create virtualenv
  2. pip install -r requirements.txt
  3. py manage.py migrate
  4. py manage.py loaddata fixture.json
  5. py manage.py runserver
  6. Password for admin and receptionist can be found in notes

hotel_management's People

Contributors

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