Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamp Internal Horizon Documentation #4948

Merged
merged 24 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5cd2684
rearrange all internal docs
aditya1702 Jul 7, 2023
954de9e
Merge branch 'master' into setup-dev-env
aditya1702 Jul 7, 2023
42a34a3
Update file names
aditya1702 Jul 7, 2023
6edf9af
Reformatting and improvements - 1
aditya1702 Jul 12, 2023
bb8127b
Merge branch 'master' into setup-dev-env
aditya1702 Jul 14, 2023
8f58b06
Address PR comments - 1
aditya1702 Jul 18, 2023
4286def
Merge branch 'master' into setup-dev-env
aditya1702 Jul 18, 2023
55e47c5
Update DEVELOPING_GUIDE.md
aditya1702 Jul 21, 2023
5845aa3
Merge branch 'master' into setup-dev-env
aditya1702 Jul 24, 2023
00a6e42
Make changes - 3
aditya1702 Jul 24, 2023
bd788ce
Make changes - 4
aditya1702 Jul 27, 2023
42f175a
Merge branch 'master' into setup-dev-env
aditya1702 Jul 27, 2023
3a4d4b7
Update GUIDE_FOR_DEVELOPERS.md
aditya1702 Jul 28, 2023
afb8ad5
Merge branch 'master' into setup-dev-env
aditya1702 Jul 28, 2023
9a3f00e
Change stellar-core version
aditya1702 Jul 31, 2023
9cd3f21
Merge branch 'master' into setup-dev-env
aditya1702 Jul 31, 2023
6d1453f
Make changes - 5
aditya1702 Jul 31, 2023
ecdbfb0
Update services/horizon/internal/docs/GUIDE_FOR_DEVELOPERS.md
aditya1702 Aug 7, 2023
ccc7fbf
Make changes - 6
aditya1702 Aug 7, 2023
2ad6128
Update GUIDE_FOR_DEVELOPERS.md
aditya1702 Aug 7, 2023
00040db
Update services/horizon/internal/docs/GUIDE_FOR_DEVELOPERS.md
aditya1702 Aug 8, 2023
03352d2
Make changes - 7
aditya1702 Aug 9, 2023
b635858
Merge branch 'master' into setup-dev-env
aditya1702 Aug 9, 2023
276f5f5
Merge branch 'master' into setup-dev-env
aditya1702 Aug 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
/vendor
/dist
/local-archive
/services/horizon/captive-core
/services/horizon/horizon
/services/horizon/stellar-horizon
.vscode
.idea
debug
Expand All @@ -12,3 +15,8 @@ debug
*.key
*.prof
*.test
*.index
*.xdr
*.db
*.conf
*.lock
2 changes: 1 addition & 1 deletion DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To checkout, build, and run most tests these tools are required:
- [Go](https://golang.org/dl) (this repository is officially supported on the last two releases of Go)

To run some tests these tools are also required:
- PostgreSQL 9.6+ server running locally, or set [environment variables](https://www.postgresql.org/docs/9.6/libpq-envars.html) (e.g. `PGHOST`, etc) for alternative host.
- PostgreSQL 12+ server running locally, or set [environment variables](https://www.postgresql.org/docs/12/libpq-envars.html) (e.g. `PGHOST`, etc) for alternative host.
- MySQL 10.1+ server running locally.

## Get the code
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ Contributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for more detai

### Developing

See [DEVELOPING.md](DEVELOPING.md) for helpful instructions for getting started developing code in this repository.
See [DEVELOPING_GUIDE.md](DEVELOPING_GUIDE.md) for helpful instructions for getting started developing code in this repository.
aditya1702 marked this conversation as resolved.
Show resolved Hide resolved

[Stellar Development Foundation]: https://stellar.org
2 changes: 1 addition & 1 deletion integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if [[ "$(docker inspect integration_postgres -f '{{.State.Running}}')" != "true"
--platform linux/amd64 \
--env POSTGRES_HOST_AUTH_METHOD=trust \
-p 5432:5432 \
circleci/postgres:9.6.5-alpine
circleci/postgres:12-bullseye
fi

exec go test -timeout 35m github.com/stellar/go/services/horizon/internal/integration/... "$@"
11 changes: 7 additions & 4 deletions services/horizon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@

Horizon is the client facing API server for the [Stellar ecosystem](https://developers.stellar.org/docs/start/introduction/). It acts as the interface between [Stellar Core](https://developers.stellar.org/docs/run-core-node/) and applications that want to access the Stellar network. It allows you to submit transactions to the network, check the status of accounts, subscribe to event streams and more.

## Try it out
See Horizon in action by running your own Stellar node as part of the Stellar [testnet](https://developers.stellar.org/docs/glossary/testnet/). With our Docker quick-start image, you can be running your own fully functional node in around 20 minutes. See the [Quickstart Guide](internal/docs/quickstart.md) to get up and running.
Check out the following resources to get started:
- [Horizon Development Guide](internal/docs/GUIDE_FOR_DEVELOPERS.md): Instructions for building and developing Horizon. Covers setup, building, testing, and contributing. Also contains some helpful notes and context for Horizon developers.
- [Quickstart Guide](https://github.com/stellar/quickstart): An external tool provided from a separate repository. It builds a docker image which can be used for running the stellar stack including Horizon locally for evaluation and testing situations. A great way to observe a reference runtime deployment, to see how everything fits together.
- [Horizon Testing Guide](internal/docs/TESTING_NOTES.md): Details on how to test Horizon, including unit tests, integration tests, and end-to-end tests.
- [Horizon SDK and API Guide](internal/docs/SDK_API_GUIDE.md): Documentation on the Horizon SDKs, APIs, resources, and examples. Useful for developers building on top of Horizon.

## Run a production server
If you're an administrator planning to run a production instance of Horizon as part of the public Stellar network, check out the detailed [Administration Guide](internal/docs/admin.md). It covers installation, monitoring, error scenarios and more.
If you're an administrator planning to run a production instance of Horizon as part of the public Stellar network, you should check out the instructions on our public developer docs - [Run an API Server](https://developers.stellar.org/docs/run-api-server/). It covers installation, monitoring, error scenarios and more.
aditya1702 marked this conversation as resolved.
Show resolved Hide resolved

## Contributing
As an open source project, development of Horizon is public, and you can help! We welcome new issue reports, documentation and bug fixes, and contributions that further the project roadmap. The [Development Guide](internal/docs/developing.md) will show you how to build Horizon, see what's going on behind the scenes, and set up an effective develop-test-push cycle so that you can get your work incorporated quickly.
As an open source project, development of Horizon is public, and you can help! We welcome new issue reports, documentation and bug fixes, and contributions that further the project roadmap. The [Development Guide](internal/docs/GUIDE_FOR_DEVELOPERS.md) will show you how to build Horizon, see what's going on behind the scenes, and set up an effective develop-test-push cycle so that you can get your work incorporated quickly.
97 changes: 0 additions & 97 deletions services/horizon/docker/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion services/horizon/docker/docker-compose.standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:

core:
platform: linux/amd64
image: ${CORE_IMAGE:-stellar/stellar-core:18}
image: ${CORE_IMAGE:-stellar/stellar-core:19.11.0-1323.7fb6d5e88.focal}
depends_on:
- core-postgres
- core-upgrade
Expand Down
3 changes: 2 additions & 1 deletion services/horizon/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
version: '3'
services:
horizon-postgres:
image: postgres:9.6.17-alpine
platform: linux/amd64
image: circleci/postgres:12-bullseye
aditya1702 marked this conversation as resolved.
Show resolved Hide resolved
restart: on-failure
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
Expand Down
Loading