- Clone the repository to your local machine.
- Install the dependencies listed in the
requirements.txt
file usingpip install -r requirements.txt
. - Set up the database connection parameters in the
db.py
file. - Run the Flask application using
python app.py
. - Access the application in your web browser at
http://localhost:5000
.
- Ensure thay you have a compatible mysql or mariadb.
- import the cvProject.sql database
- Install the dependencies listed in the
requirements.txt
file usingpip install -r requirements.txt
.
To insert a new person into the database, follow these steps:
- Navigate to the insert person form in the web application.
- Enter the person's details (e.g., first name, last name, etc.).
- Click the "Submit" button to insert the person into the database.
To update a person's details in the database, follow these steps:
- Navigate to the update person form in the web application.
- Enter the person's ID or other unique identifier.
- Modify the person's details as needed.
- Click the "Update" button to save the changes to the database.
To know how many persons share the same country:
-
Navigate to the count persons by country form in the web app
-
select the country you want to count persons in
-
click the Count Persons By Country button to be redirected to the aggregate result page