A virtual board game engine for the Seng 499 design project course by Emily, Misha, Oleg, and Juan.
Project #37 in the Virtual Open House of UVic 499 Course Projects
git clone https://github.com/miroesli/emoj.git
cd emojsudo apt install python3 python3-devsudo apt install postgresql postgresql-contribpython -m pip install -r requirements.txtInstall virtualenv
pip3 install virtualenvCreate an env directory for python3
virtualenv -p python3 envEnable the virtualenv
On Linux
source env/bin/activateOn Windows
env\Scripts\activate.batUse deactivate to stop exit the environment
sudo -u postgres psql -f project/sql/init.sql
psql -U toggleme -d project -f project/sql/create.sql
psql -U toggleme -d project -f project/sql/test_data.sqlpython manage.py makemigrations && python manage.py migrate
python3 project/manage.py runserver 8000Access the server in browser at http://localhost:8000
Run createsuperuser with manage.py
python manage.py createsuperuserBuild and run server. -d puts it into the background.
docker-compose up [-d] --build --remove-orphansMigrating data in another terminal
sudo docker-compose exec web python project/generate_cards.py
sudo docker-compose exec web python manage.py migrate --no-inputTo connect to docker database
docker-compose exec db psql -U postgres -d task_managementTo remove mapping
docker-compose down --volumes
docker-compose rm dbChange directory to the project module
cd emoj/projectRun the test using manage.py
python manage.py testAlternatively to specify which test files
python manage.py test --pattern="tests_*.py"To test circleci script see the circleci local installation docs
- Dr Miguel Nacenta for guiding us in our design decisions.