|
|
8 anni fa | |
|---|---|---|
| .. | ||
| .gitignore | 8 anni fa | |
| README.md | 8 anni fa | |
| api.go | 8 anni fa | |
| auth.go | 8 anni fa | |
| config.go | 8 anni fa | |
| gen-keys.sh | 8 anni fa | |
| main.go | 8 anni fa | |
| middleware.go | 8 anni fa | |
| models.go | 8 anni fa | |
| oauth.go | 8 anni fa | |
| oauth2.go | 8 anni fa | |
| utils.go | 8 anni fa | |
You need to clone satellizer's repo by running:
$ git clone https://github.com/sahat/satellizer
Next, cd into the go server example:
$ cd examples/server/go
Then you need to generate rsa keys to be able to use JWT:
$ ./gen-keys.sh
Get dependencies
$ go get ./...
You need an instance of MongoDB running on your local machine. By default, its address is "localhost".
If you are inside $GOPATH:
$ go run main.go
If you are outside of $GOPATH (git clone somewhere):
$ go build && ./go
Access satellizer's interface, at localhost:3000