Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryghub/rygforms
OAuth2 Login for Typeform and Tripetto
https://github.com/ryghub/rygforms
flask-application oauth2 python redirect typeform
Last synced: 23 days ago
JSON representation
OAuth2 Login for Typeform and Tripetto
- Host: GitHub
- URL: https://github.com/ryghub/rygforms
- Owner: RYGhub
- Created: 2020-12-30T14:29:39.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-21T20:21:12.000Z (10 months ago)
- Last Synced: 2024-10-15T08:41:06.889Z (2 months ago)
- Topics: flask-application, oauth2, python, redirect, typeform
- Language: HTML
- Homepage: https://forms.ryg.one
- Size: 237 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RYGforms
Ask for a OAuth2 login, then redirect to a Typeform having one or more hidden fields.
## Running
### Development
1. Clone this repository:
```bash
git clone [email protected]:RYGhub/rygforms.git
```2. Enter the cloned directory:
```bash
cd rygforms
```3. Create a new `.env` file inside containing your configuration (see [the example](EXAMPLE.env)):
```bash
cp EXAMPLE.env .env
vim .env
```4. Install the requirements using Poetry:
```bash
poetry install
```5. Run the debug server from inside the Poetry environment:
```bash
poetry shell
python -m rygforms
```### Production
1. Create a new `rygforms` user:
```bash
adduser rygforms --system
```1. Create a working directory for RYGforms, set the owner to `rygforms` and enter it:
```
mkdir /opt/rygforms
cd /opt/rygforms
```1. Create a new venv and enter it:
```bash
python -m venv venv
source venv/bin/activate
```1. Install through PyPI:
```bash
pip install rygforms gunicorn
```1. Create a new `.env` file inside containing your configuration (see [the example](EXAMPLE.env)):
```bash
curl https://raw.githubusercontent.com/RYGhub/rygforms/master/EXAMPLE.env > .env
vim .env
```1. Change the owner of the working directory to `rygforms`:
```bash
chown rygforms: /opt/rygforms
```
1. Copy the [provided systemd unit file](web-rygforms.service) to the `/etc/systemd/system` directory:
```bash
curl https://raw.githubusercontent.com/RYGhub/rygforms/master/web-rygforms.service > /etc/systemd/system/web-rygforms.service
```1. Reload the systemd unit files:
```bash
systemctl daemon-reload
```1. Start (and optionally enable) the service:
```bash
systemctl start "web-rygforms"
systemctl enable "web-rygforms"
```1. Copy the [provided Apache site file](rp-rygforms.conf) to the `/etc/apache2/sites-available` directory:
```bash
curl https://raw.githubusercontent.com/RYGhub/rygforms/master/rp-rygforms.conf > /etc/apache2/sites-available/rp-rygforms.conf
```1. Enable the `rp-rygforms` site and reload the Apache configuration:
```bash
a2ensite rp-rygforms
systemctl reload apache2
```