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 emoj
sudo apt install python3 python3-dev
sudo apt install postgresql postgresql-contrib
python -m pip install -r requirements.txt
Install virtualenv
pip3 install virtualenv
Create an env directory for python3
virtualenv -p python3 env
Enable the virtualenv
On Linux
source env/bin/activate
On Windows
env\Scripts\activate.bat
Use 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.sql
python manage.py makemigrations && python manage.py migrate
python3 project/manage.py runserver 8000
Access the server in browser at http://localhost:8000
Run createsuperuser with manage.py
python manage.py createsuperuser
Build and run server. -d
puts it into the background.
docker-compose up [-d] --build --remove-orphans
Migrating data in another terminal
sudo docker-compose exec web python project/generate_cards.py
sudo docker-compose exec web python manage.py migrate --no-input
To connect to docker database
docker-compose exec db psql -U postgres -d task_management
To remove mapping
docker-compose down --volumes
docker-compose rm db
Change directory to the project module
cd emoj/project
Run the test using manage.py
python manage.py test
Alternatively 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.