Go to file
Daniel Egger 4b9ee514f8 Add `VBV` prefix to env variables 2022-02-02 11:55:16 +01:00
.envs/.local Add `VBV` prefix to env variables 2022-02-02 11:55:16 +01:00
compose Add `VBV` prefix to env variables 2022-02-02 11:55:16 +01:00
config Add `VBV` prefix to env variables 2022-02-02 11:55:16 +01:00
locale Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
requirements Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
vbv_lernwelt Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
.dockerignore Initial commit after cookiecutter 2022-02-02 09:10:21 +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 Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
.pre-commit-config.yaml Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
.pylintrc Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
.readthedocs.yml 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 `VBV` prefix to env variables 2022-02-02 11:55:16 +01:00
README_generated.md Setup working locally 2022-02-02 09:35:02 +01:00
example.env Add `VBV` prefix to env variables 2022-02-02 11:55:16 +01:00
gulpfile.js Setup working locally 2022-02-02 09:35:02 +01:00
local.yml Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
manage.py Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
merge_production_dotenvs_in_dotenv.py Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
package.json Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
production.yml Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
pytest.ini Initial commit after cookiecutter 2022-02-02 09:10:21 +01:00
setup.cfg Add `VBV` prefix to env variables 2022-02-02 11:55:16 +01:00

README.md

VBV Lernwelt

Project setup is based on cookiecutter-django project template.

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.