Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.4 KB

README.md

File metadata and controls

44 lines (31 loc) · 1.4 KB

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.

Installing Dependencies

Horizon uses gb to manage go dependencies, which are bundled into the vendor directory.

Building

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

Files ending in _generated.go are generating using go-codegen. Before you can regenerate the code, you'll need to install that tool. After installed, simply run go 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