A web application to implement the hotel management system
Build the docker image from the docker-compose.yml file using the below command
docker compose up --build
- Create a git repository using
git init
- Add the remote repository using
git add origin https://github.com/Mitrajeet-Golsangi/Hotel-Management-System.git
- Pull your required branch using
git pull --set-upstream origin branch_name
- Now run
pip install virtualenv
in command prompt - Create a virtual environment using
virtualenv dbms_cp
- Activate the virtual environment using
dbms_cp\Scripts\activate
- Now, run
pip install -r requirements.txt
- After setup is complete, add the environment file shared to the collaborators in root directory
- Done !
- Install PostgreSQL 14.3 from here
- Follow the download instructions
- Now search 'Edit the system environment variables' in Windows
- click on 'Environment Vairables' button
- In new window Click on 'New' to create a new vairable
- Make it's name as 'PSQL_PAS' (case sensitive)
- In the value provide the password which you provided while installation of PostgreSQL
- Click 'OK' for all the open windows
- Restart any running applications in order for changes to take effect
- Open pgAdmin 4 on you computer
- Click Servers(1)
- Right click on PostgreSQL 14 and create new database named 'hotel_management_system'
- Now, open the command prompt in the location of the django project
- Run the following command 'py manage.py migrate'
- After successful migration, check your database in postgreSQL
- In Servers(1) > PostgreSQL 14 > hotel_management_system > schemas > tables you will see multiple new tables used by default by django
- Done ! You are all set with postgreSQL
- You must have NodeJS installed
- You must have the Node Package Manager (npm) installed
- You must have Python Installed
- Navigate inside the
hotel_management_system
directory - Run
npm install
after pulling the repo - Create a virtualenv (explained above)
- Run
pip install -r requirements.txt
- After everything is installed run the
server.ps1
file in powershell to start the servers