Files
COMP-2707-final-project/README.md
2023-04-14 21:24:36 -04:00

823 B

This project uses React on the frontend and Flask on the backend. The goal of this project was to make a Brightspace clone/remake.

Running the code

Docker

If you have docker and docker-compose installed, you can simply use the provided docker-compose.yml file.

echo "REACT_APP_BACKEND_URL=http://localhost:5000" > frontend/.env
docker-compose up -d --build

Once both services are up, head to http://localhost:8080

NOTE: You might have to refresh the webpage a few times. For some reason it bugs out sometimes

Manual

Backend setup

Run this in a new terminal

cd backend
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
flask run

Frontend setup

Run this in a new terminal

cd frontend
npm install
npm start