45 lines
798 B
Markdown
45 lines
798 B
Markdown
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.
|
|
|
|
```sh
|
|
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](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
|
|
|
|
```sh
|
|
cd backend
|
|
python -m venv venv
|
|
pip install -r requirements.txt
|
|
flask run
|
|
```
|
|
|
|
|
|
### Frontend setup
|
|
|
|
Run this in a new terminal
|
|
|
|
```sh
|
|
cd frontend
|
|
npm install
|
|
npm start
|
|
```
|
|
|