Go to file
bumi 854dbee7d5
Merge pull request #48 from bumi/email-notification
Added the notify_email column to the forms table
2020-07-22 16:30:34 +02:00
app Merge pull request #48 from bumi/email-notification 2020-07-22 16:30:34 +02:00
bin Some spring related changes?! 2020-06-10 15:15:42 +02:00
config added the notification email method 2020-07-02 22:51:37 +02:00
db added the notification email method 2020-07-02 22:51:37 +02:00
lib Add support to choose the sheet within google spreadsheets 2020-06-10 15:50:15 +02:00
log Hello tinyforms 2020-04-05 23:35:53 +02:00
public JS file for tinyfor.ms customer 2020-07-22 16:04:31 +02:00
storage Hello tinyforms 2020-04-05 23:35:53 +02:00
tmp Hello tinyforms 2020-04-05 23:35:53 +02:00
vendor Hello tinyforms 2020-04-05 23:35:53 +02:00
.browserslistrc Hello tinyforms 2020-04-05 23:35:53 +02:00
.gitignore remove DS_Store 2020-06-02 20:57:52 +02:00
.rubocop.yml hello rubocop 2020-04-28 01:40:06 +02:00
Gemfile added the notification email method 2020-07-02 22:51:37 +02:00
Gemfile.lock Use Ruby 2.7.1 2020-04-28 10:30:18 +02:00
Procfile Automatically run DB migrations during the heroku release phase 2020-04-12 23:25:41 +02:00
README.md Add note about lockbox config 2020-04-09 16:06:08 +02:00
Rakefile hello rubocop 2020-04-28 01:40:06 +02:00
babel.config.js Hello tinyforms 2020-04-05 23:35:53 +02:00
config.ru hello rubocop 2020-04-28 01:40:06 +02:00
env.example Add Airtable demo 2020-04-15 14:53:33 +02:00
package-lock.json Integrate bulma css package in the project 2020-04-06 15:54:44 +02:00
package.json Experiment with typing cycler 2020-04-14 14:13:06 +02:00
postcss.config.js Hello tinyforms 2020-04-05 23:35:53 +02:00
yarn.lock Experiment with typing cycler 2020-04-14 14:13:06 +02:00

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