Ensure you have Python3 installed on your system. You can download it from Python's official website. Flask and MySQL connector for Python are required. These can be installed using pip:
pip install Flask mysql-connector-python flask-cors
py -m pip install Flask mysql-connector-python flask-core
Import the NUGRAM.sql into your MySQL database. This file contains all necessary tables and procedures. You can use a MySQL Workbench to import the project database or the command line to import the file. For command line, use:
mysql -u [username] -p [password] project < NUGRAM.sql
Open a terminal and navigate to the NUGRAM directory:
python3 Input_db_creds.py
flask --app app.py run --debug
In a new terminal window, navigate again to the NUGRAM directory and open the login.html in your default browser:
open login.html
Alternatively, you can double-click on the login.html file to open it in your default web browser.
Open a command prompt and navigate to the NUGRAM directory:
cd path\to\NUGRAM
Open a terminal and navigate to the NUGRAM directory:
py Input_db_creds.py (Note: make sure to use python3)
py -m flask --app app.py run --debug
In a new command prompt window, navigate again to the NUGRAM directory and open the login.html in your default browser:
start login.html
As an alternative, you can simply double-click on the login.html file to open it in your default web browser.
You can either create a new user, or login into one of our users:
-
Email: [email protected]
-
Password: noahpassword
-
Email: [email protected]
-
Password: victorpassword