2020-12-22 15:09:13 +01:00
2020-12-22 15:09:13 +01:00
2020-12-04 14:54:47 +01:00
2020-12-22 15:09:13 +01:00
2020-12-20 18:45:17 +01:00
2020-12-20 19:36:49 +01:00
2020-12-22 15:09:13 +01:00
2020-11-13 23:05:39 +01:00
2020-11-13 12:24:26 +01:00
2020-11-13 23:05:39 +01:00
2020-11-13 23:08:03 +01:00
2020-11-13 23:05:39 +01:00
2020-11-13 12:24:26 +01:00
2020-11-13 23:05:39 +01:00
2020-12-22 15:09:13 +01:00
2020-12-22 15:09:13 +01:00
2020-12-22 15:09:13 +01:00
2020-11-11 09:03:45 +01:00
2020-12-22 15:09:13 +01:00
2020-12-07 08:01:08 +01:00
2020-12-22 15:09:13 +01:00
2020-12-20 13:43:01 +01:00
2020-11-13 23:05:39 +01:00

Goslar Event Prototype

Build Status Coverage Status Code style: black Updates

Website prototype using Python, Flask and Postgres.

Automatic Deployment

Deploy

Manual Installation

Requirements

  • Python 3.7
  • pip
  • Postgres with postgis

Create database

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

Install and run

export DATABASE_URL="postgresql://postgres@localhost/gsevpt"
pip install -r requirements.txt
flask db upgrade
gunicorn --bind 0.0.0.0:5000 project:app

Scheduled/Cron jobs

Jobs that should run on a regular basis.

Daily

flask event update-recurring-dates

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 secrets.token_urlsafe().
SECURITY_PASSWORD_HASH Bcrypt is set as default SECURITY_PASSWORD_HASH, which requires a salt. Generate a good salt using: 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 "

Resolve addresses with Google Maps

Variable Function
GOOGLE_MAPS_API_KEY 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%