- If Python is not installed on the machine, install Python from this link.
- It's recommended to add Python to the path. By doing this, it would be directly added to the Environment Variables and then could be accessed from anywhere.
- If Git is not installed on the machine, install Git from this link.
- Now, go to the repo, and click on Code.
- Now, click on the Copy symbol.
- Go to the Desktop, and right click. Click on Git Bash Here.
- Type the following line in the git bash terminal:
git clone https://github.com/kartikeya47/MSE-Face-Recognition-Attendance-System.git
- Now, it's observable that a folder named MSE-Face-Recognition-Attendance-System has been created in the Desktop.
- Type in the following commands in the git bash terminal now:
cd MSE-Face-Recognition-Attendance-System
cd Scripts
source activate
cd ..
The above steps have activated the Python Virtual Environment.
- Now, it's time to install the necessary Python Packages that are required to run the Web App:
pip install -r requirements.txt
- Now, all the major steps have taken place. Type the following command in the Git Bash Terminal to run the Web App:
python wsgi.py
Ctrl+Left Click on the above url to launch the Web-App on the Browser.
- Delete the existing database.db.
- Now, open any terminal in the MSE-Face-Recognition-Attendance-System Directory and type python in it.
- Now type the following to import the db class:
from app.main import db
- Now, for creating the database, type:
db.create_all()
- Now, type:
exit()
New Database has been created!