WebApp created using Flask, MySQL & Python to manage day-to-day taks at IIT Gandhinagar's Guest House
Open the MySQL Workbench import the 'guesthouse_db.sql' file.
In the app.py
file, update the line app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+mysqldb://root:<password>@localhost/guesthouse'
by replacing <password>
to sql server password and guesthouse
to guesthouse_db
.
-
Open the directory in the code editor.
-
Now, we need to create a virtual python environment in the project directory. This can be done by executing following commands (windows):
python -m venv env
.\env\Scripts\activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the application:
python app.py
or
flask run
-
Open your web browser and visit
http://localhost:5000
to access the application.