/gouthy

Gouthy - Simple SSO authenticator for personal projects

Primary LanguageGoApache License 2.0Apache-2.0

Gouthy - Simple SSO authenticator for personal projects

Installation

TBD

Development

Development notes

Create a new migrate

This project is using the go migrate tool. CLI tool documentation can be found here

Create a new migration

migrate create -ext sql -dir db/migrations/psql <name>

Run the migration on the testing env

migrate -database 'postgres://postgres:postgres@localhost:5432/gouthy?sslmode=disable' -path db/migrations/psql up

Discard all the migrations

migrate -database 'postgres://postgres:postgres@localhost:5432/gouthy?sslmode=disable' -path db/migrations/psql down

Create a new user

go run main.go add-user -u admin -e "admin@localhost" -n "Admin User"