commit ac0707296df479c0de5399b8adcccc24da749810
Author: Lorenz Padberg <lorenz.padberg@iterativ.ch>
Date: Thu Sep 15 11:39:01 2022 +0200
Revert "Upgrade to Wagtail 4.0"
This reverts commit e6f43f6b11e91a923badbaec33ab460a3cfac60e.
commit d5b28e362f604d17fed32fabe8295865b82350de
Author: Lorenz Padberg <lorenz.padberg@iterativ.ch>
Date: Thu Sep 15 11:38:14 2022 +0200
Add factories for category content
commit e6ebabc1c6b01ccbc14413bbe40e71a348dfa565
Author: Lorenz Padberg <lorenz.padberg@iterativ.ch>
Date: Tue Sep 13 16:10:58 2022 +0200
Simplify Mediathek models
commit b4dd179b891960babb8c26a70d3cecfcabb72264
Author: Lorenz Padberg <lorenz.padberg@iterativ.ch>
Date: Mon Sep 12 15:53:00 2022 +0200
Add Document and Link to Mediathek
commit 707ab8d9abc622f3ef5935472ddc7e7c74a352e6
Author: Lorenz Padberg <lorenz.padberg@iterativ.ch>
Date: Mon Sep 12 14:16:49 2022 +0200
Add Media Library Models, including factory and default data
commit e6f43f6b11e91a923badbaec33ab460a3cfac60e
Author: Lorenz Padberg <lorenz.padberg@iterativ.ch>
Date: Mon Sep 12 11:09:46 2022 +0200
Upgrade to Wagtail 4.0
|
||
|---|---|---|
| .git-crypt | ||
| client | ||
| compose/django | ||
| cypress | ||
| docs | ||
| env | ||
| env_secrets | ||
| scripts | ||
| server | ||
| .dockerignore | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| .tool-versions | ||
| README.md | ||
| README_generated.md | ||
| bitbucket-pipelines.yml | ||
| caprover_create_app.py | ||
| caprover_deploy.sh | ||
| cypress.config.js | ||
| docker-compose-local.yml | ||
| example.env | ||
| git-crypt-encrypted-files.txt | ||
| package.json | ||
| prepare_server.sh | ||
| prepare_server_cypress.sh | ||
| trufflehog-allow.json | ||
| trufflehog-exclude-patterns.txt | ||
README.md
VBV Lernwelt
Project setup is based on cookiecutter-django project template.
Run for development
# run vue vite dev server
cd client && npm run dev
# reset db and run django dev server
./prepare_server.sh
# run tailwind cli (for tailwind support on django templates)
cd client && npm run tailwind
Installation
See .tool-versions file for used django and node version
You have to set up at least the following environment variables:
export IT_APP_ENVIRONMENT=development
See .env_secrets/local_daniel.env for more possible environment variables.
Especially set correct values for POSTGRES_* and DATABASE_URL
Server part
Install python dependencies:
pip install -r server/requirements/requirements-dev.txt
The "prepare_server.sh" script will create the database according to POSTGRES_* environment variables.
It will also setup the tables for django and run the django development server.
# will initial`migrate` and `runserver` etc...
./prepare_server.sh
# or async server
# uvicorn config.asgi:application --host 0.0.0.0 --reload
Client part
cd client
npm install
# run dev server
npm run dev
General part
Cypress is installed for client and server, so there is this package.json on the project root directory
# in project root directory
npm install
Deployment to CapRover
CapRover Dev (vbv-lernwelt.control.iterativ.ch)
# run deploy script
./caprover_deploy.sh vbv-lernwelt
# of vbv-lernwelt is default value
./caprover_deploy.sh
CapRover Stage (myvbv-stage.iterativ.ch)
./caprover_deploy.sh myvbv-stage
CapRover Prod (myvbv.iterativ.ch)
./caprover_deploy.sh myvbv
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.
