Open-source forms web service written in Go
- A working Go environment
- Godep
- Bower
- Redis
- Google OAuth 2.0 Client ID (used for login)
git clone https://github.com/marksteve/formic
cd formic
bower install
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 = "you@company.com,you@gmail.com"
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="you@company.com,you@gmail.com"
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!
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
Space background image from: https://flic.kr/p/9pGfXt
I think I've seen something similar before
Yes you have!
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
.