{"id":23410020,"url":"https://github.com/rulanugrh/lysithea","last_synced_at":"2025-04-09T02:40:37.131Z","repository":{"id":223541496,"uuid":"759414600","full_name":"rulanugrh/lysithea","owner":"rulanugrh","description":"Implementation of ELK Stack with Golang and PostgreSQL, as well as monitoring with Elastic APM Opentelemetry","archived":false,"fork":false,"pushed_at":"2024-04-05T13:55:29.000Z","size":1120,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T21:00:05.535Z","etag":null,"topics":["elk-stack","go-api","go-elk"],"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/rulanugrh.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-18T14:33:48.000Z","updated_at":"2024-04-05T01:58:49.000Z","dependencies_parsed_at":"2024-06-19T13:21:27.558Z","dependency_job_id":"22ad05cb-a70a-4c1a-8ac3-2f4926afaf8b","html_url":"https://github.com/rulanugrh/lysithea","commit_stats":null,"previous_names":["rulanugrh/lysithea"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rulanugrh%2Flysithea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rulanugrh%2Flysithea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rulanugrh%2Flysithea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rulanugrh%2Flysithea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rulanugrh","download_url":"https://codeload.github.com/rulanugrh/lysithea/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247968268,"owners_count":21025795,"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":["elk-stack","go-api","go-elk"],"created_at":"2024-12-22T16:15:43.451Z","updated_at":"2025-04-09T02:40:37.110Z","avatar_url":"https://github.com/rulanugrh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lysithea\n\n\u003cimg src=\"https://raw.githubusercontent.com/D3Ext/aesthetic-wallpapers/main/images/purple-girl.png\"\u003e\n\n## Getting Started\n\nHaii, is my project, in this project about implementation ELK (Elasticsearch, Logstash, Kibana) stack. Before you running this project you must have :\n\n- [Golang](https://go.dev/dl)\n- [PostgreSQL](https://www.postgresql.org/download/)\n- [API Client](https://www.postman.com/downloads/)\n- [Docker](https://docs.docker.com/engine/install/)\n\n## Tech Stack\n\n- Golang\n- PostgreSQL\n- GORM (ORM)\n- Docker\n- Elasticsearch\n- Kibana\n- Logstash\n- JWT (JSON Web Token)\n- [Validator](https://github.com/go-playground/validator)\n- Mux (Web Framework)\n- Opentelemetry\n- Elasticsearch APM\n\n## Installation\n\nClone this project on your local laptop\n\n```\ngit clone https://github.com/rulanugrh/lysithea\n```\n\nGo to project folder\n\n```\ncd lysithea\n```\n\nInstall go modules\n\n```\ngo mod tidy\n```\n\n## Before Running\nYou must running db, elasticsearch, kibana, and logstash.\n\n```\ndocker compose up -d db\ndocker compose up -d elasticsearch\ndocker compose up -d kibana\ndocker compose up -d logstash\n```\n\nIf you dont have docker you can install docker, see [Docker Docs](https://docs-docker-com.translate.goog/engine/install).\n\n## Running\n\nCopy `.env.example` to `.env`\n\n```\ncp .env.example .env\n```\n\nMake sure your PostgresQL is running and you have it setup, and then migrate struct\n\n```\ngo run cmd/main.go migrate\n```\n\nAfter running migration you can seed data to db\n\n```\ngo run cmd/main.go seeder\n```\n\nAnd last, you can running HTTP Server\n\n```\ngo run cmd/main.go serve\n```\n\n## Docs\n\nYou can see docs in url `APP_URL:APP_PORT/docs/`\n\n## Structure Directory\n\nThis project stucture i use, hmm It looks like this structure is familiar to your eyes\n\n```\n.\n├── Dockerfile\n├── LICENSE\n├── README.md\n├── cmd\n│   └── main.go\n├── docker-compose.yml\n├── docs\n│   ├── docs.go\n│   ├── swagger.json\n│   └── swagger.yaml\n├── go.mod\n├── go.sum\n├── infrastructure\n│   ├── elk\n│   │   ├── Dockerfile\n│   │   ├── logstash.yml\n│   │   ├── pipeline.yml\n│   │   ├── postgresql-42.7.1.jar\n│   │   └── pusher.conf\n│   └── nginx\n│       └── nginx.conf\n├── internal\n│   ├── config\n│   │   ├── app.go\n│   │   ├── db.go\n│   │   ├── elasticsearch.go\n│   │   └── otelapm.go\n│   ├── entity\n│   │   ├── domain\n│   │   │   ├── category.go\n│   │   │   ├── order.go\n│   │   │   ├── product.go\n│   │   │   └── user.go\n│   │   └── web\n│   │       ├── response.go\n│   │       └── response_data.go\n│   ├── http\n│   │   ├── category.go\n│   │   ├── order.go\n│   │   ├── product.go\n│   │   └── user.go\n│   ├── middleware\n│   │   ├── cors.go\n│   │   ├── jwt.go\n│   │   ├── token.go\n│   │   └── validation.go\n│   ├── mocks\n│   │   ├── category_repository_mock.go\n│   │   └── user_repository_mock.go\n│   ├── repository\n│   │   ├── category.go\n│   │   ├── order.go\n│   │   ├── product.go\n│   │   └── user.go\n│   ├── route\n│   │   ├── category.go\n│   │   ├── order.go\n│   │   ├── product.go\n│   │   └── user.go\n│   ├── service\n│   │   ├── category.go\n│   │   ├── order.go\n│   │   ├── product.go\n│   │   └── user.go\n│   └── util\n│       ├── migration.go\n│       ├── pagination.go\n│       ├── seeder.go\n│       └── uuid.go\n└── tests\n    ├── category_repository_test.go\n    └── user_repository_test.go\n```\n\n## LICENSE\n\nThis project is licensed under the terms of the [MIT](./LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frulanugrh%2Flysithea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frulanugrh%2Flysithea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frulanugrh%2Flysithea/lists"}