Skip to main content

RYGforms

Ask for a OAuth2 login, then redirect to a Typeform having one or more hidden fields.

Running

Development

  1. Clone this repository:

    git clone git@github.com:RYGhub/rygforms.git
    
  2. Enter the cloned directory:

    cd rygforms
    
  3. Create a new .env file inside containing your configuration (see the example):

    cp EXAMPLE.env .env
    vim .env
    
  4. Install the requirements using Poetry:

    poetry install
    
  5. Run the debug server from inside the Poetry environment:

    poetry shell
    python -m rygforms
    

Production

  1. Create a new rygforms user:

    adduser rygforms --system
    
  2. Create a working directory for RYGforms, set the owner to rygforms and enter it:

    mkdir /opt/rygforms
    cd /opt/rygforms
    
  3. Create a new venv and enter it:

    python -m venv venv
    source venv/bin/activate
    
  4. Install through PyPI:

    pip install rygforms gunicorn
    
  5. Create a new .env file inside containing your configuration (see the example):

    curl https://raw.githubusercontent.com/RYGhub/rygforms/master/EXAMPLE.env > .env
    vim .env
    
  6. Change the owner of the working directory to rygforms:

    chown rygforms: /opt/rygforms
    
  7. Copy the provided systemd unit file to the /etc/systemd/system directory:

    curl https://raw.githubusercontent.com/RYGhub/rygforms/master/web-rygforms.service > /etc/systemd/system/web-rygforms.service
    
  8. Reload the systemd unit files:

    systemctl daemon-reload
    
  9. Start (and optionally enable) the service:

    systemctl start "web-rygforms"
    systemctl enable "web-rygforms"
    
  10. Copy the provided Apache site file to the /etc/apache2/sites-available directory:

    curl https://raw.githubusercontent.com/RYGhub/rygforms/master/rp-rygforms.conf > /etc/apache2/sites-available/rp-rygforms.conf
    
  11. Enable the rp-rygforms site and reload the Apache configuration:

    a2ensite rp-rygforms
    systemctl reload apache2
    

Metadata

Release files for rygforms 0.5.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rygforms 0.5.12
File Size Uploaded
rygforms-0.5.12.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rygforms 0.5.12
File Interpreter ABI Platform
rygforms-0.5.12-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / rygforms-0.5.12.tar.gz

Download URL rygforms-0.5.12.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
23b0f33081b861992de3c7e8974ac41d119baabea559e29c6f86e58eef564e28
BLAKE2b-256 checksum
How to use checksums
2c3f9e7527bf9f1bf75b0eda9b7bf28f0cf3dece66000876a01711673cf551d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / rygforms-0.5.12-py3-none-any.whl

Download URL rygforms-0.5.12-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
094a2336d146edbd38d6aa100cd437f1904edcce25c138f0d3c3265ea46ec588
BLAKE2b-256 checksum
How to use checksums
b4364b00dacf9b5373ea0ab1ea7e030b9ca77cf1ddb5f4c39d84a72993941081
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.5.12 This release

2 release files

0.5.11

2 release files

0.5.10

2 release files

0.5.8

2 release files

0.5.7

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page