A RESTful API for submitting standard HTML form data to a GitHub-hosted CSV.
GitHub supports CSVs. That's awesome. But what if you want to store user input, such as RSVPs or other form submissions? Well, now you can. Just replace github.com
in the URL with the URL to your GitHub Forms server, and your standard HTML Form can now commit to GitHub.
Upon submission, the user is asked to Oauth, if they've not already, their identity is verified and the information is appended to the CSV.
- HTML form builder
- Git storage of form definitions
- Pull requests (sans conflicts)
- Gemification
script/bootstrap
- Create an oauth application
export GITHUB_CLIENT_ID=[GitHub Client ID]
export GITHUB_CLIENT_SECRET=[GitHub Client Secret]
- Create an oauth token for yourself or a user with write access to the file(s)
export GITHUB_TOKEN=[GiHub Token]
Same as above, just use heroku config:set
instead of export
.
You'll also want to run heroku addons:add redistogo:nano
to set up a free redis instance.
script/server
- Open localhost:9292 in your browser
- Create a CSV file on GitHub
- Create a standard HTML form with fields matching each column
- Replace
github.com
in the URL with your GitHub form server