https://github.com/fkei/stgoart
st[goa]rt
https://github.com/fkei/stgoart
cdep css example goa golang
Last synced: 20 days ago
JSON representation
st[goa]rt
- Host: GitHub
- URL: https://github.com/fkei/stgoart
- Owner: fkei
- License: mit
- Created: 2016-08-26T08:08:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-15T11:58:24.000Z (almost 9 years ago)
- Last Synced: 2024-06-20T16:31:54.719Z (over 1 year ago)
- Topics: cdep, css, example, goa, golang
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# stgoart
Sample project using [cdep](https://github.com/fkei/cdep) and [Goa](https://goa.design/)
# QuickStart
```
$ make deps # dependency go package install
> ./cdep install
> [INFO ] go get <-- git:github.com/goadesign/goa/...@398e76a5b137cd5d46d6a2973015c92fa9e0645a
> [INFO ] check [success] git reset: 398e76a5b137cd5d46d6a2973015c92fa9e0645a == 398e76a5b137cd5d46d6a2973015c92fa9e0645a
> cd src/github.com/fkei/stgoart; GOPATH=/Users/fkei/workspace/stgoart go run *.go
$ make gen # goa code generate
> GOPATH=/Users/fkei/workspace/stgoart ./bin/goagen main -d github.com/fkei/stgoart/design -o ./src/github.com/fkei/stgoart
> ......
> GOPATH=/Users/fkei/workspace/stgoart ./bin/goagen app -d github.com/fkei/stgoart/design -o ./src/github.com/fkei/stgoart
> ......
> GOPATH=/Users/fkei/workspace/stgoart ./bin/goagen client -d github.com/fkei/stgoart/design -o ./src/github.com/fkei/stgoart
> ......
> GOPATH=/Users/fkei/workspace/stgoart ./bin/goagen swagger -d github.com/fkei/stgoart/design -o ./src/github.com/fkei/stgoart
> ......
> GOPATH=/Users/fkei/workspace/stgoart ./bin/goagen schema -d github.com/fkei/stgoart/design -o ./src/github.com/fkei/stgoart
> ......
> GOPATH=/Users/fkei/workspace/stgoart ./bin/goagen js -d github.com/fkei/stgoart/design -o ./src/github.com/fkei/stgoart
> ......
$ make start # server start
> cd src/github.com/fkei/stgoart; GOPATH=/Users/fkei/workspace/stgoart go run *.go
> 2017/03/15 20:53:02 [INFO] mount ctrl=Ping action=Show route=GET /ping
> 2017/03/15 20:53:02 [INFO] mount ctrl=Swagger files=public/swagger/swagger.json route=GET /swagger.json
> 2017/03/15 20:53:02 [INFO] listen transport=http addr=:3000
```
> access url: http://localhost:3000/ping