IMGRAM_DATA_DIR
: directory used to store uploaded images.IMGRAM_DSN
: Database DSN used for connecting.
- Create user:password (defaults to root:)
- Create database (defaults to
imgram
)
migrate -path=migrations -database="$DSN" up
go run .
go build -o imgram .