Repository files navigation
Install MySQL if not done so on https://dev.mysql.com/downloads/installer/
Open up the MySQL command line and run CREATE DATABASE medipal; to create the database
Schema will be autogenerated once the server runs
Change into backend directory by running cd medipal-backend
Create a virtual environment to manage dependencies by running python -m venv be_venv
Activate virtual environment by running be_venv/scripts/activate (OS-dependent command)
Install required dependencies by running python -m pip install -r requirements.txt
For local setup, enable CORS for localhost by modifying app.py:
from flask import Flask
from flask_cors import CORS
app = Flask (name )
app .config .from_object (ApplicationConfig )
CORS (
app ,
resources = {r"/api/*" : {"origins" : "http://localhost:3000" }},
supports_credentials = True ,
)
For MacOS users, change the port to run on 8000 due to conflicting ports and change accordingly in the frontend .env
Add the .env file to load the environmental variables
Start up the backend server by running python app.py
Change into frontend directory by running cd fe
Install the required packages for initial start by running npm install
Start up the frontend server by running npm start
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.