swsnu / swppfall2022-team4

4 stars 1 forks source link

FITogether

Build Status Quality Gate Status Coverage Status

https://fitogether.site/

Locally Install

Run frontend server

# node.js : v16.18.1
# Rename frontend/example.env to frontend/.env

cd frontend
yarn install
yarn start

Run backend server

# python : v3.9.5

cd backend
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver 0.0.0.0:8000

Websocket setting

# redis-server should be running in the background.

cd backend
daphne -b 0.0.0.0 -p 8001 FITogether.asgi:application

Testing

Test frontend

cd frontend
yarn test --coverage --watchAll=false

Test backend

cd backend
coverage run --source='.' manage.py test
coverage report

Create Dummy Data

cd backend
python manage.py seed_users -n 10
...

You can find commands to add dummy data at here.