Skip to content

kwint/nfc-card-game

Repository files navigation

Prerequisites

  • Poetry
  • python3.11 and python3.11-dev
  • libpq-dev
  • docker

Start up:

cp .env.template .env

set DJANGO_SECRET_KEY in .env to the output of python3 -c 'from django.utils.crypto import get_random_string; print(get_random_string(50))'

poetry install

poetry shell

dev:

via docker

docker compose up

Run django manually

Add this to /etc/hosts

127.0.0.1       db
docker compose up -d db

python manage.py migrate

python manage.py runserver

Initialize

python manage.py createsuperuser

# or when running through Docker compose
docker compose run -it web ./manage.py createsuperuser

prod:

docker compose up -f compose.yml -f compose.prod.yml up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published