Skip to content

TheMoleGame/TheMole-Backend

Repository files navigation

The Mole

This repository is the backend part of a game called the mole.
It was made as a student project for the student exhibition showtime.
For more information see our showtime page. Main game board 05 06

Backend Setup

For python/virtualenv setup see this page. We need at least python 3.6.

To install Django and socketio activate your virtualenv and execute pip install -r requirements.txt inside augmented-boardgame/mole_backend.

Database Setup

  1. Download and install PostgreSQL: https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
    • Deactivate Stackbuilder
    • Port: 5432 (Default)
  2. Install 'psycopg2' package, so Django can use the PostgreSQL database: pip install psycopg2
  3. python manage.py migrate
  4. python manage.py createsuperuser
  5. Don't forget .env file for access to the local postgre

Start Backend

python3 manage.py runserver

Setup Heroku

  1. Install Heroku cli
heroku login
  1. Authenticate via browser
  2. Set remotes to git repo
heroku git:remote -a testmapbranch
git remote rename heroku heroku-staging
heroku git:remote -a ab-backend

Staging new features to Heroku

  1. push your branch: feat/yourfeat to the remote staging heroku
    The Heroku staging git-repo is called testmapbranch.
    Test if the branch works on this repo.
git push heroku-staging feat/yourfeat:master
  1. check https://testmapbranch.herokuapp.com/ if it works
  2. Merge feature in master
  3. push to master
git push heroku master
  1. should be working on master https://ab-backend.herokuapp.com/

Access from web

See here for more information.

About

This is the backend part of The Mole, a game developed by students at the HTW Berlin

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages