You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
bumi 854dbee7d5
Merge pull request #48 from bumi/email-notification
2 years ago
app Merge pull request #48 from bumi/email-notification 2 years ago
bin Some spring related changes?! 2 years ago
config added the notification email method 2 years ago
db added the notification email method 2 years ago
lib Add support to choose the sheet within google spreadsheets 2 years ago
log Hello tinyforms 3 years ago
public JS file for tinyfor.ms customer 2 years ago
storage Hello tinyforms 3 years ago
tmp Hello tinyforms 3 years ago
vendor Hello tinyforms 3 years ago
.browserslistrc Hello tinyforms 3 years ago
.gitignore remove DS_Store 2 years ago
.rubocop.yml hello rubocop 2 years ago
Gemfile added the notification email method 2 years ago
Gemfile.lock Use Ruby 2.7.1 2 years ago
Procfile Automatically run DB migrations during the heroku release phase 3 years ago
README.md Add note about lockbox config 3 years ago
Rakefile hello rubocop 2 years ago
babel.config.js Hello tinyforms 3 years ago
config.ru hello rubocop 2 years ago
env.example Add Airtable demo 2 years ago
package-lock.json Integrate bulma css package in the project 3 years ago
package.json Experiment with typing cycler 3 years ago
postcss.config.js Hello tinyforms 3 years ago
yarn.lock Experiment with typing cycler 3 years ago

README.md

Tinyforms

Form endpoint that allows to push data from a static HTML form directly into a google spreadsheet.

Installation

Requirements

  • ruby 2.6 or higher
  • PostgreSQL

Installation

Install gem dependencies and setup the database:

$ bundle install
$ rails db:setup

Configuration

To use the application the Google API client needs to be configured using the following environment variables:

  • GOOGLE_CLIENT_ID
  • GOOGLE_PROJECT_ID
  • GOOGLE_CLIENT_SECRET

You can get those from the Google APIs Dashboard

Additionally an encryption master key needs to be configured. lockbox is used to encrypt sensitive data (e.g. access_token) at rest.

  • LOCKBOX_MASTER_KEY

Store those in a .env file; see env.example for an example.

Run the application

$ rails server # loads the configruation from the .env file

Open localhost:3000