https://github.com/silentred/toolkit
Toolkit of web API and RPC services
https://github.com/silentred/toolkit
api-service rpc-service
Last synced: 6 months ago
JSON representation
Toolkit of web API and RPC services
- Host: GitHub
- URL: https://github.com/silentred/toolkit
- Owner: silentred
- License: mit
- Created: 2017-06-09T03:52:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-09T09:44:40.000Z (almost 6 years ago)
- Last Synced: 2025-04-09T06:41:48.739Z (9 months ago)
- Topics: api-service, rpc-service
- Language: Go
- Size: 92.8 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# toolkit
Toolkit of web API and RPC services



[](https://goreportcard.com/report/github.com/silentred/toolkit)
[](https://codebeat.co/projects/github-com-silentred-toolkit-master)
[](https://www.codacy.com/app/silentred/toolkit?utm_source=github.com&utm_medium=referral&utm_content=silentred/toolkit&utm_campaign=Badge_Grade)
## Build
```
go get github.com/silentred/toolkit
cd $GOPATH/src/github.com/silentred/toolkit
make build
./toolkit -v
_____ _ _ _ _
|_ _|__ ___ | | | _(_) |_
| |/ _ \ / _ \| | |/ / | __|
| | (_) | (_) | | <| | |_
|_|\___/ \___/|_|_|\_\_|\__|
Version: v0.1.1
GitHash: 7975f569095d28c979c70f192533fa35a507b0c7
BuildTS: 2017-06-15 03:44:02
NAME:
toolkit - A toolkit of the Toolkit
USAGE:
toolkit [global options] command [command options] [arguments...]
VERSION:
v0.0.1
COMMANDS:
new, n Create a new project
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
```
## Usage
### Create new project
```
$ ./toolkit new myapp
# Step1: creating dirs and files
create file: /Users/jason/Desktop/projects/GOPATH/src/gitlab.luojilab.com/igetserver/myapp/main.go
create file: /Users/jason/Desktop/projects/GOPATH/src/gitlab.luojilab.com/igetserver/myapp/service/echo.go
create file: /Users/jason/Desktop/projects/GOPATH/src/gitlab.luojilab.com/igetserver/myapp/Makefile
create file: /Users/jason/Desktop/projects/GOPATH/src/gitlab.luojilab.com/igetserver/myapp/config.toml
create file successful
# Step2: run following commands to start the app
cd $GOPATH/gitlab.luojilab.com/igetserver/myapp
git init && git add * && git commit -m "init commit"
go get github.com/labstack/echo
make build && ./myapp
Have fun!
```
Follow the guide and run the application.
### Run and watch
Coming later.