Please note that this documentation assumes that you have pip, mysql, npm setup and are using PyCharm as your IDE.
- Clone/download the zip file and extract all into a folder.
- Navigate to the root folder of the project.
- Open your terminal and run
mysql -u <username>and enter your password on the prompt. - Execute
CREATE DATABASE hospital_tutorial_db - Execute
CREATE TABLE hospital_tutorial_db.Patients (pid int NOT NULL AUTO_INCREMENT, lastname varchar(255) NOT NULL, firstname varchar(255), PRIMARY KEY (pid)); - Please change the config in app.py in the root directory to your MySQL username and password to connect to the MySQL database.
- Open a terminal in the root directory of the project.
- Execute:
python3 -m venv envor just open the project in PyCharm and it should automatically configure this. pip install flaskpip install flask-corspip install flask-mysqldb- Run the project on the server. (Important) Server should be running on https://localhost:5000/
- Go to the frontend directory from the root directory and open a terminal.
- Execute:
npm installto install all the libraries I have used. - Execute:
npm startto start the server - You should see the client-side server running on https://localhost:3000
The project should be running. The transactions are handled by https://localhost:5000, while the client side server is handled by https://localhost:3000.
There are instructions on how to use the website on the home page. Enjoy!
Task 1, Task 2, Task 3, Task 4