Skip to content

RanbirAulakh/Clue-Less

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clue-Less

Ranbir Aulakh Michael Knatz Victoria Palaoro

Setting up Dev Environment

  1. Ensure you have Python 3.7 installed
  2. Then execute pip install requirements.txt to install dependencies
  3. Use any IDE
  4. Download Docker Hub (https://www.docker.com/products/docker-desktop)
  • When installing on Windows, ensure that you tick "Linux Containers" NOT "Windows Containers"

Start Django Server

cd ClueLess/

If this is an initial setup or if you have made some changes to the Model classes, run the commands below:

  • python3 manage.py makemigrations

  • python3 manage.py migrate

If this is an initial setup, run the command below:

  • python manage.py loaddata init_data.json

python3 manage.py runserver

Then open web broswer (Chrome, Firefox, or Edge) and go to http://127.0.0.1:8000/

Start Docker Service, open Terminal (or CMD) and execute:

docker run -p 6379:6379 -d redis

Extras

Create SuperUser (Admin Account)

python manage.py createsuperuser

Access Admin Panel?

http://127.0.0.1:8000/admin

What is ___?

  • Procfile
    • It's a file that runs python in the background on Heroku
  • runtime.txt
    • Let Heroku know which Python version to use
  • requirements.txt
    • Travis-CI or Heroku can download required dependencies in order to run the game
    • django - Python web framework
    • channels - Message communication
    • channels-redis - Message communication (data store)

(WIP) Deploy Django to Heroku

git add . git commit -am "commit message" git push heroku master

About

Foundations of Software Engineering

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •