Go to file
Lorenz Padberg 08d0245a04 Add media_library app 2022-08-18 11:35:59 +02:00
.git-crypt Add 1 git-crypt collaborator 2022-02-02 11:57:00 +01:00
client Added green state to learning path diagramm 2022-08-15 15:51:51 +02:00
compose/django Improve DB reset for caprover deployment 2022-06-30 14:11:21 +02:00
cypress Skip test 2022-04-21 08:45:15 +02:00
docs Add local config 2022-05-16 14:42:03 +02:00
env Rename env variable stuff 2022-05-25 18:31:43 +02:00
env_secrets Add sso params 2022-08-10 09:45:02 +02:00
scripts Add page cache for learningpath pages 2022-07-05 15:44:11 +02:00
server Add media_library app 2022-08-18 11:35:59 +02:00
.dockerignore Add .git to docker ignore 2022-08-08 15:55:57 +02:00
.editorconfig Rename env variable stuff 2022-05-25 18:31:43 +02:00
.gitattributes Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
.gitignore excluded media from gitignore 2022-06-30 11:03:20 +02:00
.pre-commit-config.yaml Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
.tool-versions Upgrade to Wagtail 3.0 2022-06-07 18:16:53 +02:00
README.md Refactor tailwind configuration 2022-06-30 14:11:22 +02: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 Changes for deployment 2022-06-21 13:39:48 +02:00
caprover_deploy.sh Pin platform for docker build 2022-08-11 09:59:16 +02: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
example.env Rename env variable stuff 2022-05-25 18:31:43 +02:00
git-crypt-encrypted-files.txt added my env file to encryptet_files.txt 2022-04-14 15:01:42 +02:00
package.json Refactor tailwind configuration 2022-06-30 14:11:22 +02:00
prepare_server.sh Add media_library app 2022-08-18 11:35:59 +02:00
prepare_server_cypress.sh Redirect to sorted cms index page 2022-06-07 14:56:30 +02: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.

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

# run deploy script
./caprover_deploy.sh

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.

Optional

Install the EnvFile Plugin

Install the tailwind css Plugin from Jetbrains