oauth2-server

command module
Version: v0.0.0-...-920ada6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 21 Imported by: 0

README

oauth2-server

tamanyan/oauth2-server is a implementation of an OAuth 2.0 authorization server written in GO.

How to build

make engine

How to run

./bin/engine

How to add module into app dir

1. Download andersjanmyr/goose

Download goose in order to generate template files.

andersjanmyr/goose

# OS X
$ curl -L https://github.com/andersjanmyr/goose/releases/download/v1.5.0/goose-osx > goose

# Linux
$ curl -L https://github.com/andersjanmyr/goose/releases/download/v1.5.0/goose-linux > goose

# Make executable
$ chmod a+x ./goose

For example, let's create article module

> MODULE=article make gen-template
./goose --verbose -outputdir app/article -templatedir ./.template/ -data 'name=article'  .  article
OPTIONS:
verbose: true
force: false
interactive: false
template: .
name: article
templateDir: ./.template/
outputDir: app/article
data: map[DATA:map[name:article] NAME:article]
Generating file app/article/http/controller/article_controller.go
Generating file app/article/http/request/article_request.go
Generating file app/article/http/response/article_response.go
Generating file app/article/repository/article_repository.go
Generating file app/article/repository.go
Generating file app/article/usecase/article_ucase.go
Generating file app/article/usecase.go

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL