COMP3900 Group Project
Project Initialization
Initialize project as steps show in a tutorial.
Short cut cmd
Backend setup
cd backend
# create venv in local environment
python3 -m venv venv
# activate the vitural environment in the backend
source venv/bin/activate
# Install backend dependency
pip3 install -r requirements.txt
# run back-end before
./init_config.sh
# set up database with initial data
./setupDB.sh database.db dummy
# run back-end
python3 run.py
# deactivate venv
deactivate
Frontend setup
# Install frontend dependency
yarn install
Run commands shortcut
# run front-end
yarn start-fd
# run back-end
yarn start-bd
# Run the whole app
yarn start
# if get error below
# socket.error: [Errno 48] Address already in use
kill -9 $(lsof -t -i:5000)
Library dependency
- For backend
pip install -r path/to/requirements.txt
- For front end
nodejs, yarn, reactstrap, ant-design