Go to file
Daniel Egger 82c987f541 Make docker compose work locally 2022-02-02 23:01:22 +01:00
.git-crypt Add 1 git-crypt collaborator 2022-02-02 11:57:00 +01:00
compose/django Make docker compose work locally 2022-02-02 23:01:22 +01:00
config Make docker compose work locally 2022-02-02 23:01:22 +01:00
env Make docker compose work locally 2022-02-02 23:01:22 +01:00
env_secrets Make docker compose work locally 2022-02-02 23:01:22 +01:00
locale Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
requirements Rip out social user management 2022-02-02 14:13:21 +01:00
vbv_lernwelt Make docker compose work locally 2022-02-02 23:01:22 +01:00
.dockerignore Make docker compose work locally 2022-02-02 23:01:22 +01:00
.editorconfig Setup working locally 2022-02-02 09:35:02 +01:00
.gitattributes Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
.gitignore Make docker compose work locally 2022-02-02 23:01:22 +01:00
.pre-commit-config.yaml Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
.pylintrc Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
.tool-versions Setup working locally 2022-02-02 09:35:02 +01:00
README.md Add `VBV` prefix to env variables 2022-02-02 11:55:16 +01:00
README_generated.md Setup working locally 2022-02-02 09:35:02 +01:00
docker-compose-local.yml Make docker compose work locally 2022-02-02 23:01:22 +01:00
example.env Rip out social user management 2022-02-02 14:13:21 +01:00
gulpfile.js Add tailwind and basic base.html styling 2022-02-02 21:51:03 +01:00
manage.py Refactor settings handling 2022-02-02 13:54:31 +01:00
package.json Make docker compose work locally 2022-02-02 23:01:22 +01:00
production.yml Moved env files 2022-02-02 12:03:10 +01:00
pytest.ini Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
setup.cfg Add `VBV` prefix to env variables 2022-02-02 11:55:16 +01:00
tailwind.config.js Make docker compose work locally 2022-02-02 23:01:22 +01:00

README.md

VBV Lernwelt

Project setup is based on cookiecutter-django project template.

Installation

See .tool-versions file for used django and node version

Create a new PostgreSQL database and role

createdb vbv_lernwelt
createuser vbv_lernwelt

Set the environment variable accordingly

export VBV_DATABASE_URL='postgres://vbv_lernwelt@localhost:5432/vbv_lernwelt'

Set VBV_DJANGO_READ_DOT_ENV_FILE=True to make the config read the example.env file (with direnv!?).

Apply migrations and run async server

python manage.py migrate

# sync server
python manage.py runserver

# or async server
uvicorn config.asgi:application --host 0.0.0.0 --reload

SASS Live-Reloading

# start django server...
# live reloading is hardcoded via proxy to port 8000 -> django server must get started manually
npm run dev

# open site with http://localhost:3000

IntelliJ Configuration

  • In the .idea/vbv_lernwelt.iml file change the module type to "PYTHON_MODULE".
  • Add django facet in "Project Structure".
  • Run configuration with "Python -> server.py" to have async debugging support.