Skip to content

mandeeps708/booking_system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Booking System

Booking System is a web application based on Django framework and can be used to book different halls.

Note: See branch 'gd' for updated code.

Table of Contents

Introduction

Booking System is a Django based web application. The primary aim of this application is to minimize the wastage of time and money.

Pre-Requisites

  1. Apache2
  2. mysql-server
  3. python2.7
  4. python-pip
  5. python-mysqldb
  6. virtualenv
  7. django 1.7
  8. mysql-python

For the installation of Requiremets listed above, run the following commands in terminal:

  1. Apache2

     $ sudo apt-get install apache2
    
  2. mysql-server

     $ sudo apt-get install mysql-server
    
  3. python2.7

     $ sudo apt-get install python
    
  4. python-pip

     $ sudo apt-get install python-pip
    
  5. python-mysqldb

     $ sudo apt-get install python-mysqldb
    
  6. virtualenv

     $ pip install virtualenv
    
  7. Configuring Virtualenv

    • virtualenv venv
    • source venv/bin/activate
  8. Django 1.7.3

     $ pip install django==1.7.3
    
  9. mysql-python

     $ pip install mysql-python
    
  10. Now run the command

     $ pip freeze
    

And the output should be similar to:

    Django==1.7.3
    MySQL-python==1.2.5
    argparse==1.2.1
    wsgiref==0.1.2

Installation

  1. Log into you mysql account using the command:

    mysql -u root -p

  2. Create a new database for bookingsystem inside mysql shell:

mysql> create database bookingsystem;

mysql> quit

  1. Clone this repository using terminal:

git clone https://github.com/rvirdiz/booking_system.git

  1. Now traverse to the directory:

cd booking_system/src

  1. Edit booking_system/settings.py file. Things to be edited are:

    • In the 'DATABASES' section, replace the root in the 'USER' field with your mysql username and 1234 with your mysql password.These are the details those you entered in step 2 above.
  2. Create a superuser for your project:

python manage.py createsuperuser

Now add Username, email(optional) and password.
  1. To see the project working, shoot the following commands:

python manage.py migrate

python manage.py runserver 7000

Make sure you are in the booking_system/src directory in which the file 'manage.py' exists.
  1. Now open your web browser with the address:

http://localhost:7000

Enter the username and password similar to that you entered in step 6 above.

If you find any problem at any step of the installation, feel free to email us and for more detail check out the blog links given here.

#Team Members

##Mentor

Dr. Hardeep Singh Rai

Website: http://gndec.ac.in/~hsrai

##Developers

Mandeep Singh

Contact: [email protected]

Blog: http://mandeep7.wordpress.com

Listforks

Ramandeep Singh

Contact: [email protected]

Blog: http://ramanvirdiz.wordpress.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published