Jonas Schäfer 68f72743c5 Bump quart to version 0.17
This is needed because jinja2 had an update which caused the portal to
not work at all:

```
ImportError: cannot import name 'escape' from 'jinja2'
```

Quart needed updating for that.

This update required a lot of typefixes. Apparently, the "canned"
responses (like redirect) are now plain werkzeug responses, while
quart.Response does not inherit from werkzeug.Response (otherwise, we
could've changed the type annotations to werkzeug.Response everywhere,
but that doesn't work because a quart.Response is not a
werkzeug.Response).

P.S.: This time, I *did* check that avatar uploads don't break (see
b007afc).
2022-05-30 17:37:54 +02:00
2021-02-03 18:30:38 +01:00
2022-05-30 17:37:54 +02:00
2021-01-17 20:11:26 +01:00
2021-01-23 12:53:29 +01:00
2021-01-17 20:13:05 +01:00
2021-06-18 16:11:22 +02:00
2021-01-22 15:29:58 +01:00
2020-02-17 16:10:42 +00:00
2021-01-21 18:09:57 +01:00
2021-01-17 20:11:26 +01:00
2022-05-30 17:37:54 +02:00

Snikket Web Portal

Screenshot of the app

Development quickstart

$ direnv allow
$ cp example.env .env
$ $EDITOR .env  # to adapt the configuration to your needs
$ pip install -r requirements.txt
$ pip install -r build-requirements.txt
$ make
$ quart run

Configuring

Purely via environment variables

For a list of required and understood environment variables as well as their semantics, please refer to example.env.

Via python code

In addition to statically setting environment variables, it is possible to initialise the environment variables in a python file. To do that, pass the path to the python file as SNIKKET_WEB_PYENV environment variable.

The python file is evaluated before further environment variable processing takes place. Every name defined in that file which begins with an upper case ASCII letter is included in the processing of environment variables for configuration purposes.

For a (non-productive) example of such a file, see example.env.py.

Description
This is the web portal for Snikket Chat services. To learn more about what Snikket Chat services are, check the website.
Readme AGPL-3.0 4.8 MiB
Languages
Python 46.1%
HTML 34.7%
SCSS 13.3%
Jinja 2.9%
Shell 1%
Other 2%