The Servala Self-Service Portal
Find a file
2025-03-07 09:21:48 +01:00
.forgejo/issue_template add feature issue template 2025-03-04 10:32:36 +01:00
docker initialize docker build 2025-03-07 09:16:24 +01:00
src Use environment variables in Django settings 2025-03-05 17:36:25 +01:00
.dockerignore initialize docker build 2025-03-07 09:16:24 +01:00
.env.example Use environment variables in Django settings 2025-03-05 17:36:25 +01:00
.gitignore Initial commit 2025-03-03 15:26:47 +00:00
.pre-commit-config.yaml add a pre-commit configuration 2025-03-07 09:21:48 +01:00
.python-version uv + Django[postgres] installation 2025-03-05 10:44:16 +01:00
Dockerfile initialize docker build 2025-03-07 09:16:24 +01:00
LICENSE Initial commit 2025-03-03 15:26:47 +00:00
pyproject.toml Add dev dependencies: linters, formatters, testing 2025-03-05 11:04:09 +01:00
README.md update title in README 2025-03-07 09:21:37 +01:00
uv.lock Add dev dependencies: linters, formatters, testing 2025-03-05 11:04:09 +01:00

Servala Portal

The Servala Self-Service Portal

Development setup

First, copy the .env.example file to .env and adjust the settings to your needs. Make sure to source the file before running any commands.

Then use uv to install the project and run its commands while youre developing:

uv sync --dev
uv run src/manage.py migrate
uv run src/manage.py runserver

This will start the development server on http://localhost:8000.

Configuration

TODO

Code style and linting

Servala uses several linters / formatters to keep the project style consistent for you. Run them like this:

uv run black src/  # Code formatting; -c to just check
uv run isort src/  # Import ordering; -c to just check
uv run djlint src/ --reformat --format-js --format-css  # Format templates, JS and CSS, --check to just check
uv run flake8 src/  # Python linter

Testing

TODO