{"id":21538386,"url":"https://github.com/rarimo/horizon-svc","last_synced_at":"2025-03-17T20:48:24.036Z","repository":{"id":198433146,"uuid":"700796172","full_name":"rarimo/horizon-svc","owner":"rarimo","description":"Horizon is the module that allows users to track user-emitted and system evens, fetch info about the current state of the system and build transactions to send to target networks","archived":false,"fork":false,"pushed_at":"2023-12-06T09:28:10.000Z","size":1303,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-24T07:46:15.999Z","etag":null,"topics":["go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rarimo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-05T10:05:33.000Z","updated_at":"2023-11-29T17:17:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"f08e2f4b-fee5-4ecc-a622-807791774716","html_url":"https://github.com/rarimo/horizon-svc","commit_stats":null,"previous_names":["rarimo/horizon-svc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rarimo%2Fhorizon-svc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rarimo%2Fhorizon-svc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rarimo%2Fhorizon-svc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rarimo%2Fhorizon-svc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rarimo","download_url":"https://codeload.github.com/rarimo/horizon-svc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244110091,"owners_count":20399562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go"],"created_at":"2024-11-24T04:11:48.466Z","updated_at":"2025-03-17T20:48:23.994Z","avatar_url":"https://github.com/rarimo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# horizon-svc\n\n## Description\n\nHorizon is the module that allows users to track user-emitted and system events, fetch info about the current state of the system and build transactions to send to target networks\n\n## Install\n\n  ```bash\n  git clone github.com/rarimo/horizon-svc\n  cd horizon-svc\n  go build main.go\n  export KV_VIPER_FILE=./config.yaml\n  ./main migrate up\n  ./main run service\n  ```\n\n## Documentation\n\nWe do use openapi:json standard for API. We use swagger for documenting our API.\n\nTo open online documentation, go to [swagger editor](http://localhost:8080/swagger-editor/) here is how you can start it\n```bash\n  cd docs\n  npm install\n  npm start\n```\nTo build documentation use `npm run build` command,\nthat will create open-api documentation in `web_deploy` folder.\n\nTo generate resources for Go models run `./generate.sh` script in root folder.\nuse `./generate.sh --help` to see all available options.\n\n\n## Running from docker \n  \nMake sure that docker installed.\n{%_ if (handleHTTP) { _%}\nuse `docker run ` with `-p 8080:80` to expose port 80 to 8080\n\n{%_ } _%}\n\n    ```bash\n    docker build -t github.com/rarimo/horizon-svc .\n    docker run -e KV_VIPER_FILE=/config.yaml github.com/rarimo/horizon-svc\n    ```\n\n## Running from Source\n\n* Set up environment value with config file path `KV_VIPER_FILE=./config.yaml`\n* Provide valid config file\n* Launch the service with `migrate up` command to create database schema\n* Launch the service with `run service` command\n\n\n### Database\nFor services, we do use ***PostgresSQL*** database. \nYou can [install it locally](https://www.postgresql.org/download/) or use [docker image](https://hub.docker.com/_/postgres/).\n\n\n### Third-party services\n\n\n## Contact\n\nResponsible hp\nThe primary contact for this project is iamhp0\n\n## License\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frarimo%2Fhorizon-svc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frarimo%2Fhorizon-svc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frarimo%2Fhorizon-svc/lists"}