letterdrop

command module
v0.0.0-...-096236b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2019 License: MIT Imports: 19 Imported by: 0

README

LetterDrop

LetterDrop is an open source alternative to FormKeep that is easy to self-host.

Developing

$ cp .env.example .env
$ docker run -d \
  -p 5432:5432 \
  -e POSTGRES_USER=letterdrop \
  -e POSTGRES_PASSWORD=letterdrop \
  postgres:10
$ go run .
Running migrations

https://github.com/golang-migrate/migrate/tree/master/cli#installation

$ migrate \
  -path=migrations \
  -database=postgres://letterdrop:letterdrop@localhost:5432/letterdrop?sslmode=disable \
  up
$ PGPASSWORD=letterdrop psql -h 127.0.0.1 --user letterdrop <<EOF
  insert into users (name, email, password_digest, is_email_confirmed) 
  values ('admin', lower('admin@letterdrop.com'), crypt('keyboardcat', gen_salt('bf', 8)), true) 
  returning *
EOF

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL