Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 794 Bytes

README.md

File metadata and controls

41 lines (32 loc) · 794 Bytes

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('[email protected]'), crypt('keyboardcat', gen_salt('bf', 8)), true) 
  returning *
EOF