Skip to content

beawitcht/transinformed-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trans Informed server

Uptime Robot status Uptime Robot ratio (30 days) CodeQL Mozilla HTTP Observatory Grade GitHub Twitter Follow


Trans Informed logo

About

This is a web app to generate personalised documents for gender diverse people to use as an aid in their conversations with their GPs around accessing gender affirming care.

Setup guide

Installation

Navigate to app directory:

cd app/

Install with pip:

pip install -r requirements.txt

Configure .env

The following environment variables are required:

PDF_API_KEY=<your-pdf-api-key> # api key for conversion to PDF: convertapi.com
RECAPTCHA_PUBLIC_KEY=<your-recaptcha-public-key> # google recaptcha public key
RECAPTCHA_PRIVATE_KEY=<your-recaptcha-private-key> # google recaptcha private key
IS_DEV = 1 # set to 1 to disable caching
PDF_LIMIT = 100/minute # set rate limit for pdf downloads (see flask-limiter documentation)

Run with gunicorn

gunicorn -w 4 -b 127.0.0.1:8000 main:app

open collective