-
Clone or Download Repository.
-
Download the virtualenv package for creating virtual environment
pip install virtualenv
- Create a virtual environment for the project
virtualenv venv
source venv/bin/activate
- Install required python libraries given in the requirements.txt file.
cd 4400Phase4
pip install -r requirements.txt
- Start the application.
python 4400Phase4.py
- Input your SQL (user is assumed to be 'root' and db is 'travel_reservation_service').
- Open a web browser and paste the url from the terminal given under the field "running on".
- Flask: a web framework used to create web applications
- Flask Boostrap: for adding CSS to applications
- Flask_WTF and WTForms: for creating forms in flask
- pymysql: used to connect to a database in python, execute commands, and get query results
Usage: Using pymysql the phase 3 database was connected into the Flask app. In each of the screens, the corresponding procedure was called using connection established using pymysql and the cursor object of this connection. Data to be displayed on the screens was also obtained using cursor object of connection of pymysql.
- HTML
- CSS
- Javascript and Jquery
HTML and CSS was used to create the. skeleton of each of the webpages. Javascript was used for data validation before form submit. Jquery was used to create sortable tables (using datatables), to add the autocomplete features in the text fields, and to send and receive ajax requests to enable smooth interaction between server and client side.
- Dewang Agarwal: Completed full-stack development of Screens 1-14 and conducted dynamic testing of the completed web-app.
- Shashank Singhania: Completed full-stack development of Screens 15-20 and set-up of the Flask Application.
- Hemang Dash: Completed full-stack development of Screens 21-24.
- Amrit Iyer: Conducted sample testing of the completed web-app.