{"id":13710069,"url":"https://github.com/bobturanov/srv-verification-api","last_synced_at":"2025-05-06T18:33:49.170Z","repository":{"id":45873372,"uuid":"421090170","full_name":"bobturanov/srv-verification-api","owner":"bobturanov","description":"Tasks 1, 2, 3, 4, 5, 6, 7 [All] Ozon Go school + 💎","archived":false,"fork":false,"pushed_at":"2021-11-30T19:06:59.000Z","size":1915,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-02T15:52:17.333Z","etag":null,"topics":["go","golang","ozon"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bobturanov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-25T15:56:01.000Z","updated_at":"2024-03-26T08:52:16.000Z","dependencies_parsed_at":"2022-09-14T12:01:57.651Z","dependency_job_id":null,"html_url":"https://github.com/bobturanov/srv-verification-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobturanov%2Fsrv-verification-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobturanov%2Fsrv-verification-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobturanov%2Fsrv-verification-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobturanov%2Fsrv-verification-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bobturanov","download_url":"https://codeload.github.com/bobturanov/srv-verification-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252744879,"owners_count":21797698,"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","golang","ozon"],"created_at":"2024-08-02T23:00:51.503Z","updated_at":"2025-05-06T18:33:48.371Z","avatar_url":"https://github.com/bobturanov.png","language":"Go","funding_links":[],"categories":["Repositories"],"sub_categories":[],"readme":"# Ozon Marketplace Verification API\n\n---\n\n## Build project\n\n### Local\n\nFor local assembly you need to perform\n\n```zsh\n$ make deps # Installation of dependencies\n$ make build # Build project\n```\n## Running\n\n### For local development\n\n```zsh\n$ docker-compose up -d\n```\n\n---\n\n## Services\n\n### Swagger UI\n\nThe Swagger UI is an open source project to visually render documentation for an API defined with the OpenAPI (Swagger) Specification\n\n- http://localhost:8080/swagger\n\n### Grafana:\n\n- http://localhost:3000\n- - login `admin`\n- - password `MYPASSWORT`\n\n### gRPC:\n\n- http://localhost:8082\n\n```sh\n[I] ➜ grpc_cli call localhost:8082 DescribeVerificationV1 \"id: 1\"\nconnecting to localhost:8082\nRpc failed with status code 5, error message: verification not found\n```\n\n### Gateway:\n\nIt reads protobuf service definitions and generates a reverse-proxy server which translates a RESTful HTTP API into gRPC\n\n- http://localhost:8080/api'\n\n```sh\n[I] ➜ curl -s -X 'POST' \\\n  'http://localhost:8080/api/v1/verifications'' \\\n  -H 'accept: application/json' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n  \"id\": \"1\"\n}' | jq .\n{\n  \"code\": 5,\n  \"message\": \"verification not found\",\n  \"details\": []\n}\n```\n\n### Metrics:\n\nMetrics GRPC Server\n\n- http://localhost:9100/metrics\n\n### Status:\n\nService condition and its information\n\n- http://localhost:8000\n- - `/live`- Layed whether the server is running\n- - `/ready` - Is it ready to accept requests\n- - `/version` - Version and assembly information\n\n### Prometheus:\n\nPrometheus is an open-source systems monitoring and alerting toolkit\n\n- http://localhost:9090\n\n### Kafka\n\nApache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.\n\n- http://localhost:9094\n\n### Kafka UI\n\nUI for Apache Kafka is a simple tool that makes your data flows observable, helps find and troubleshoot issues faster and deliver optimal performance. Its lightweight dashboard makes it easy to track key metrics of your Kafka clusters - Brokers, Topics, Partitions, Production, and Consumption.\n\n- http://localhost:9001\n\n### Jaeger UI\n\nMonitor and troubleshoot transactions in complex distributed systems.\n\n- http://localhost:16686\n\n### Graylog\n\nGraylog is a leading centralized log management solution for capturing, storing, and enabling real-time analysis of terabytes of machine data.\n\n- http://localhost:9000\n- - login `admin`\n- - password `admin`\n\n### PostgreSQL\n\nFor the convenience of working with the database, you can use the [pgcli](https://github.com/dbcli/pgcli) utility. Migrations are rolled out when the service starts. migrations are located in the **./migrations** directory and are created using the [goose](https://github.com/pressly/goose) tool.\n\n```sh\n$ pgcli \"postgresql://docker:docker@localhost:5432/srv_verification_api\"\n```\n\n### Python client\n\n```shell\n$ python -m venv .venv\n$ . .venv/bin/activate\n$ make deps\n$ make generate\n$ cd pypkg/srv-verification-api\n$ python setup.py install\n$ cd ../..\n$ docker-compose up -d\n$ python scripts/grpc_client.py\n```\n\n\n### Thanks\n\n- [Evald Smalyakov](https://github.com/evald24)\n- [Michael Morgoev](https://github.com/zerospiel)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobturanov%2Fsrv-verification-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbobturanov%2Fsrv-verification-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobturanov%2Fsrv-verification-api/lists"}