Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/francoposa/golang-auth


https://github.com/francoposa/golang-auth

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

        

# golang-auth

Authentication & Authorization with Golang & Postgres

### DB Migrations

Uses [Goose](https://github.com/pressly/goose) for migrations.

Install Goose:

```
$ go get -u github.com/pressly/goose/cmd/goose
```

Create DBs
```
psql -U postgres -c "CREATE DATABASE golang_auth_authentication;"
```

Run migrations from project root:

```
goose -dir infrastructure/db/migrations postgres "user=postgres dbname=golang_auth_authentication sslmode=disable" up
```

The test setup currently handles running migrations up & down migrations to start & end with an empty database.