formic
formic copied to clipboard
Open-source forms web service written in Go
Formic
Open-source forms web service written in Go
Requirements
- A working Go environment
- Godep
- Bower
- Redis
- Google OAuth 2.0 Client ID (used for login)
Install
git clone https://github.com/marksteve/formic
cd formic
bower install
Configuration
Formic uses drone/config so you can configure it either by creating a formic.toml
file:
redis-host = "localhost"
session-secret = "secret"
[google]
client-id = "client id"
client-secret = "client secret"
allowed-emails = "[email protected],[email protected]"
Or through environment variables prefixed with FORMIC_
:
export FORMIC_REDIS_HOST="localhost"
export FORMIC_SESSION_SECRET="secret"
export FORMIC_GOOGLE_CLIENT_ID="client id"
export FORMIC_GOOGLE_CLIENT_SECRET="client secret"
export FORMIC_GOOGLE_ALLOWED_EMAILS="[email protected],[email protected]"
Google OAuth 2.0
Set your Google OAuth 2.0 Client ID's redirect URI to http://<ADDRESS>/oauth2callback
.
You can set google-allowed-emails
to "anyone"
and host forms for, well, anyone!
Running
godep go run main.go
Formic binds on :8000
by default. You can change that using the -bind
argument:
godep go run main.go -bind 127.0.0.1:5000
License
Space background image from: https://flic.kr/p/9pGfXt
(Might be) FAQ
I think I've seen something similar before
Yes you have!
- https://formkeep.com
- http://forms.brace.io/
NIH?
Nope! I was learning Go and wanted to create something that I'd use with it.
Why name it after the buggers?
A friend suggested it. It sounds cool and has "form" in it. It's way better than its original name go-submit
.