dependabot[bot] acfe6f0a75 Bump urllib3 from 1.26.2 to 1.26.3
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.2 to 1.26.3.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.2...1.26.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-19 20:44:52 +00:00
2021-02-14 13:28:55 +01:00
2021-02-09 12:14:27 +01:00
2021-02-12 15:43:40 +01:00
2021-03-18 10:47:58 +01:00
2021-03-18 10:47:58 +01:00
2021-01-17 15:49:23 +01:00
2020-11-13 23:05:39 +01:00
2020-11-13 12:24:26 +01:00
2020-12-30 13:52:37 +01:00
2021-02-12 15:43:40 +01:00
2021-02-12 15:43:40 +01:00
2020-11-13 23:08:03 +01:00
2020-11-13 12:24:26 +01:00
2020-11-13 23:05:39 +01:00
2020-12-30 13:52:37 +01:00
2021-03-18 10:47:58 +01:00
2021-02-14 09:57:57 +01:00
2020-11-11 09:03:45 +01:00
2020-12-22 15:09:13 +01:00
2020-12-29 15:04:09 +01:00
2021-02-14 09:57:57 +01:00
2020-11-13 23:05:39 +01:00

Goslar Event Prototype

Tests codecov Code style: black Docker Pulls

Website prototype using Python, Flask and Postgres.

Automatic Deployment

Deploy

Docker

docker run -p 5000:5000 -e "DATABASE_URL=postgresql://postgres@localhost/gsevpt" danielgrams/gsevpt:latest

Manual Installation

Requirements

  • Python 3.7
  • pip
  • Postgres with postgis

Create database

psql -c 'create database gsevpt;' -U postgres

Install and run

python3 -m venv venv
source venv/bin/activate
(venv) pip install -r requirements.txt
(venv) export DATABASE_URL='postgresql://postgres@localhost/gsevpt'
(venv) flask db upgrade
(venv) gunicorn -c gunicorn.conf.py project:app

Scheduled/Cron jobs

Jobs that should run on a regular basis.

Daily

flask event update-recurring-dates
flask dump all

Administration

flask user add-admin-roles super@hero.com

Configuration

Create .env file in the root directory or pass as environment variables.

Security

Variable Function
SECRET_KEY A secret key for verifying the integrity of signed cookies. Generate a nice key using python3 -c "import secrets; print(secrets.token_urlsafe())".
SECURITY_PASSWORD_HASH Bcrypt is set as default SECURITY_PASSWORD_HASH, which requires a salt. Generate a good salt using: python3 -c "import secrets; print(secrets.SystemRandom().getrandbits(128))".

Send notifications via Mail

Variable Function
MAIL_DEFAULT_SENDER see https://pythonhosted.org/Flask-Mail/
MAIL_PASSWORD "
MAIL_PORT "
MAIL_SERVER "
MAIL_USERNAME "

Misc

Variable Function
CACHE_PATH Absolute or relative path to root directory for dump and image caching. Default: project/tmp
GOOGLE_MAPS_API_KEY Resolve addresses with Google Maps: API Key with Places API enabled

Development

Development

Description
No description provided
Readme MIT 12 MiB
Languages
JavaScript 40.9%
HTML 37.7%
Python 20.8%
CSS 0.6%