Skip to content

FredericHeem/go-horizon

 
 

Repository files navigation

Note this code is pre-alpha.

It is definitely not ready yet for production.

Horizon

Build Status docs examples

Horizon is the client facing API server for the Stellar ecosystem. See an overview of the Stellar ecosystem for more details.

Building

gb is used for building horizon.

Given you have a running golang installation, you can install this with:

go get -u github.com/constabulary/gb/...

From within the project directory, simply run gb build. After successful completion, you should find bin/horizon is present in the project directory.

Regenerating generated code

Horizon uses two go tools you'll need to install:

  1. go-bindata is used to bundle test data
  2. go-codegen is used to generate some boilerplate code

After the above are installed, simply run gb generate.

Running Tests

first, create two local Postgres databases, and start a redis server on port 6379

psql -c 'create database "horizon_test";'
psql -c 'create database "stellar-core_test";'
redis-server

then, run the tests like so:

bash script/run_tests.bash

About

go-horizon is the client facing HTTP API server for the Stellar ecosystem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 91.0%
  • API Blueprint 8.0%
  • Other 1.0%