Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 1.53 KB

README.md

File metadata and controls

69 lines (51 loc) · 1.53 KB

SWPP team 10

Build Status Quality Gate Status Coverage Status

How to run

Frontend

cd frontend/connectoon
yarn install
yarn start

Backend

cd backend/connectoon
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py runserver

How to test

Frontend

Unit Test

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

Backend

Unit Test

cd backend/connectoon
coverage run --branch --source="." manage.py test
coverage report

How to Deploy

Frontend

Docker & nginx

docker build -t frontend .
docker run -p 443:443 -v '/etc/letsencrypt:/etc/letsencrypt' --rm -d --name frontend_container frontend

Backend

Docker & uwsgi

docker build -t backend .
docker run -it -p 0.0.0.0:8000:8000 --name backend_container backend:latest /bin/bash
uwsgi --wsgi-file connectoon/wsgi.py --http :8000
docker exec -it backend_container /bin/bash # to get into running docker

make DB

  • go into makeDB folder
  • run ./runserver, ./makeDB respectively