Skip to content

gethinyan/auth

Repository files navigation

Server

Getting Start

$ git clone -b server https://github.com/gethinyan/auth.git
$ cd auth
$ source ./sendgrid.env
$ go run auth.go
# Then, visit the address http:/localhost:9090/hello.

Initial Postgres

$ brew install postgresql
$ brew services start postgresql
$ psql postgres

CREATE ROLE auth WITH LOGIN PASSWORD '123456';
CREATE DATABASE auth;
ALTER ROLE auth Superuser;

Initial Redis

$ brew install redis
$ brew services start redis
$ redis-cli

keys *

OpenAPI

# go-swagger generate api doc and serve it.
$ brew tap go-swagger/go-swagger
$ brew install go-swagger
$ swagger generate spec -o ./swagger.yml
$ swagger serve ./swagger.yml

About

auth module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages