Git Product home page Git Product logo

hotel-management-system's Introduction

Hotel-Management-System

A web application to implement the hotel management system

Contents

1. With Docker

Project Setup

Build the docker image from the docker-compose.yml file using the below command

docker compose up --build
💡Note: In order to check the Kubernetes deployment steps please check the docs section

2. Without Docker

2.1. Method for setting up the Django Project

  1. Create a git repository using git init
  2. Add the remote repository using git add origin https://github.com/Mitrajeet-Golsangi/Hotel-Management-System.git
  3. Pull your required branch using git pull --set-upstream origin branch_name
  4. Now run pip install virtualenv in command prompt
  5. Create a virtual environment using virtualenv dbms_cp
  6. Activate the virtual environment using dbms_cp\Scripts\activate
  7. Now, run pip install -r requirements.txt
  8. After setup is complete, add the environment file shared to the collaborators in root directory
  9. Done !

2.2. Method for Setting up PostgreSQL in Django Application

  1. Install PostgreSQL 14.3 from here
  2. Follow the download instructions
  3. Now search 'Edit the system environment variables' in Windows
  4. click on 'Environment Vairables' button
  5. In new window Click on 'New' to create a new vairable
  6. Make it's name as 'PSQL_PAS' (case sensitive)
  7. In the value provide the password which you provided while installation of PostgreSQL
  8. Click 'OK' for all the open windows
  9. Restart any running applications in order for changes to take effect
  10. Open pgAdmin 4 on you computer
  11. Click Servers(1)
  12. Right click on PostgreSQL 14 and create new database named 'hotel_management_system'
  13. Now, open the command prompt in the location of the django project
  14. Run the following command 'py manage.py migrate'
  15. After successful migration, check your database in postgreSQL
  16. In Servers(1) > PostgreSQL 14 > hotel_management_system > schemas > tables you will see multiple new tables used by default by django
  17. Done ! You are all set with postgreSQL

2.3. Project Setup

2.3.1. Prerequisites

  1. You must have NodeJS installed
  2. You must have the Node Package Manager (npm) installed
  3. You must have Python Installed

2.3.2. Procedure

  1. Navigate inside the hotel_management_system directory
  2. Run npm install after pulling the repo
  3. Create a virtualenv (explained above)
  4. Run pip install -r requirements.txt
  5. After everything is installed run the server.ps1 file in powershell to start the servers

hotel-management-system's People

Contributors

mitrajeet-golsangi 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.