Go to file
Daniel Egger 1483ec8be0 Refactor to pinia store 2022-06-20 16:40:03 +02:00
.git-crypt Add 1 git-crypt collaborator 2022-02-02 11:57:00 +01:00
client Refactor to pinia store 2022-06-20 16:40:03 +02:00
compose/django Update scripts for building and deployment 2022-05-30 16:58:22 +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 Rename env variable stuff 2022-05-25 18:31:43 +02:00
server Toggle learning contents 2022-06-14 16:41:21 +02:00
tailwind Toggle learning contents 2022-06-14 16:41:21 +02:00
.dockerignore Make docker compose work locally 2022-02-02 23:01:22 +01: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 Update scripts for building and deployment 2022-05-30 16:58:22 +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 Add workaround for vitejs resolving font path 2022-06-05 21:25:40 +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 Update scripts for building and deployment 2022-05-30 16:58:22 +02:00
caprover_deploy.sh Update scripts for building and deployment 2022-05-30 16:58:22 +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 Update scripts for building and deployment 2022-05-30 16:58:22 +02:00
prepare_server.sh Redirect to sorted cms index page 2022-06-07 14:56:30 +02:00
prepare_server_cypress.sh Redirect to sorted cms index page 2022-06-07 14:56:30 +02:00
tailwind.config.js Add `ItCheckbox` component 2022-06-14 14:15:37 +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 tailwind cli (on project root folder!)
npm run tailwind 

# run vue vite dev server
cd client && npm run dev

# reset db and run django dev server
./prepare_server.sh

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 and TailwindCSS ist 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