Go to file
Daniel Egger 5081ddf107 Rename env variable stuff 2022-05-25 18:31:43 +02:00
.git-crypt Add 1 git-crypt collaborator 2022-02-02 11:57:00 +01:00
client Style learning sequence 2022-05-25 18:23:42 +02:00
compose/django Rename env variable stuff 2022-05-25 18:31:43 +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 Rename env variable stuff 2022-05-25 18:31:43 +02:00
tailwind Refactor Circle page 2022-05-25 18:23:42 +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 Add integrated tailwind support for client and server 2022-05-23 11:09:07 +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 Rename env variable stuff 2022-05-25 18:31:43 +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 Rename env variable stuff 2022-05-25 18:31:43 +02: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
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 Styling of circle page 2022-05-25 18:23:42 +02:00
prepare_server.sh Rename env variable stuff 2022-05-25 18:31:43 +02:00
prepare_server_cypress.sh Rename env variable stuff 2022-05-25 18:31:43 +02:00
production.yml Moved env files 2022-02-02 12:03:10 +01:00
tailwind.config.js Styling of circle page 2022-05-25 18:23:42 +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

The "prepare_server.sh" script will create the database according to POSTGRE_* 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

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

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

Wagtail API intro

get all pages:

http://localhost:8000/api/v2/pages/

get Analyse Circle (the one with the most demo data)

http://localhost:8000/api/v2/pages/?title=Analyse

Get Circles only

http://localhost:8000/api/v2/pages/?type=learnpath.Circle

Get All Contents from that circle:

http://localhost:8000/api/v2/pages/?child_of=11