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
9 months ago
app Merge pull request #48 from bumi/email-notification 9 months ago
bin Some spring related changes?! 10 months ago
config added the notification email method 10 months ago
db added the notification email method 10 months ago
lib Add support to choose the sheet within google spreadsheets 10 months ago
log Hello tinyforms 1 year ago
public JS file for tinyfor.ms customer 9 months ago
storage Hello tinyforms 1 year ago
tmp Hello tinyforms 1 year ago
vendor Hello tinyforms 1 year ago
.browserslistrc Hello tinyforms 1 year ago
.gitignore remove DS_Store 11 months ago
.rubocop.yml hello rubocop 12 months ago
Gemfile added the notification email method 10 months ago
Gemfile.lock Use Ruby 2.7.1 12 months ago
Procfile Automatically run DB migrations during the heroku release phase 1 year ago
README.md Add note about lockbox config 1 year ago
Rakefile hello rubocop 12 months ago
babel.config.js Hello tinyforms 1 year ago
config.ru hello rubocop 12 months ago
env.example Add Airtable demo 1 year ago
package-lock.json Integrate bulma css package in the project 1 year ago
package.json Experiment with typing cycler 1 year ago
postcss.config.js Hello tinyforms 1 year ago
yarn.lock Experiment with typing cycler 1 year 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