Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/francoposa/golang-auth
https://github.com/francoposa/golang-auth
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/francoposa/golang-auth
- Owner: francoposa
- License: agpl-3.0
- Created: 2020-03-21T15:32:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T07:43:21.000Z (10 months ago)
- Last Synced: 2024-06-21T21:43:36.980Z (5 months ago)
- Language: Go
- Size: 11.2 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.