Goal is to create a dashboard which will
- laptop size light blue theme
- desktop size dark theme
- tablet size light blue theme
- phone size light blue theme
- phone size grey theme
- Create the .env file in root folder and the envrionment variables
POSTGRES_CONNECT_URL="postgresql://siddhant:password@localhost:5432/world-data" ENVIRONMENT_TYPE="PROD" ALLOWED_ORIGIN_CLIENT_1="http://localhost:5173" ALLOWED_ORIGIN_CLIENT_2="http://localhost:5173" ALLOWED_ORIGIN_CLIENT_3="http://localhost:5173" ALLOWED_ORIGIN_CLIENT_4="http://localhost:5173"
- go to backend folder
cd backend
- create virtual env (optional)
- Insted of "./env" can write any path where the files will be stored
python3 -m venv ./env
- connect with the virtual environement (Only if the virtual env is created)
source env/bin/activate
- install the requirement.txt packages
pip install -r requirements.txt
- Run the server
python main.py