module
Version:
v0.0.0-...-456edf8
Opens a new window with list of versions in this module.
Published: May 4, 2022
License: MIT
Opens a new window with license information.
README
¶
Eth user app
This is a demo app that:
- Creates a user and returns a jwt
- Creates api key
- Uses that api token to get average head block rate per minute from beacon node
Api
Startup:
- Check out code to $GOPATH/src/github.com/ezuhl
- Get .env file for settings and place in /env folder
- go run ./cmd/postgres/main.go [start postgres]
- go run ./cmd/eth/main.go [start app]
- use Postman to make requests
Db Migration:
- A database migration will run when you run the app. Make sure nothing, other than EthPostgress instance, is license on the Postgres port
Directories
¶
cmd
|
|
|
|
|
|
|
|
internal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.