Go to file
Lorenz Padberg 1df0f47966 added graphql fields for wagtail models 2022-05-12 17:15:09 +02:00
.git-crypt Add 1 git-crypt collaborator 2022-02-02 11:57:00 +01:00
compose/django Add caprover config 2022-02-08 17:16:16 +01:00
cypress Add cypress tests 2022-02-08 14:44:11 +01:00
env Add venv cache to make pipelines faster 2022-02-08 22:34:02 +01:00
env_secrets Added function to create testdata and DB 2022-04-12 14:53:50 +02:00
server added graphql fields for wagtail models 2022-05-12 17:15:09 +02: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 added idea and direnv to gitignore 2022-03-28 17:42:34 +02:00
.pre-commit-config.yaml 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 caprover config 2022-02-08 17:16:16 +01:00
README_generated.md Setup working locally 2022-02-02 09:35:02 +01:00
bitbucket-pipelines.yml Add venv cache to make pipelines faster 2022-02-08 22:34:02 +01:00
caprover_create_app.py Add configuration 2022-02-08 17:03:40 +01:00
caprover_deploy.sh Configure logging 2022-02-08 18:50:56 +01:00
cypress.json Add cypress tests 2022-02-08 14:44:11 +01:00
docker-compose-local.yml Make docker compose work locally 2022-02-02 23:01:22 +01:00
git-crypt-encrypted-files.txt added my env file to encryptet_files.txt 2022-04-14 15:01:42 +02:00
local-setup-for-tests.sh Added function to create testdata and DB 2022-04-12 14:53:50 +02:00
package.json added basic styling to templates 2022-04-13 14:33:07 +02:00
prepare_server_cypress.sh Added function to create testdata and DB 2022-04-12 14:53:50 +02:00
production.yml Moved env files 2022-02-02 12:03:10 +01:00
trufflehog-allow.json Update trufflehog allow 2022-02-08 16:23:56 +01:00
trufflehog-exclude-patterns.txt Add bitbucket pipelines 2022-02-03 19:13:10 +01:00

README.md

VBV Lernwelt

Project setup is based on cookiecutter-django project template.

Deployment to CapRover

# run deploy script
./caprover_deploy.sh

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.