{"id":30657059,"url":"https://github.com/lechitz/aionapi","last_synced_at":"2025-08-31T11:03:30.480Z","repository":{"id":270789556,"uuid":"885946330","full_name":"lechitz/AionApi","owner":"lechitz","description":"Aion is a habit manager that organizes, tracks, and analyzes your routine to enhance your physical and mental well-being.","archived":false,"fork":false,"pushed_at":"2025-08-25T19:09:56.000Z","size":1242,"stargazers_count":14,"open_issues_count":39,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-25T20:45:52.464Z","etag":null,"topics":["api","architecture","chi-router","docker","go","golang","gorm","grafana","graphql","hexagonal","jaeger","open-telemetry","ports-and-adapters","prometheus","redis","rest-api","unit-test","zap"],"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/lechitz.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,"zenodo":null}},"created_at":"2024-11-09T20:07:30.000Z","updated_at":"2025-07-31T00:02:39.000Z","dependencies_parsed_at":"2025-01-03T05:28:24.938Z","dependency_job_id":"07bc11bc-d54d-44c6-9a0f-553b878f1557","html_url":"https://github.com/lechitz/AionApi","commit_stats":null,"previous_names":["lechitz/aionapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lechitz/AionApi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lechitz%2FAionApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lechitz%2FAionApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lechitz%2FAionApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lechitz%2FAionApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lechitz","download_url":"https://codeload.github.com/lechitz/AionApi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lechitz%2FAionApi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272971549,"owners_count":25024099,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","architecture","chi-router","docker","go","golang","gorm","grafana","graphql","hexagonal","jaeger","open-telemetry","ports-and-adapters","prometheus","redis","rest-api","unit-test","zap"],"created_at":"2025-08-31T11:03:25.459Z","updated_at":"2025-08-31T11:03:30.472Z","avatar_url":"https://github.com/lechitz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AionApi\n\n_This repository is part of an ongoing study and development project. Many features are still being built and tested, so expect frequent changes as new tools and patterns are explored._\n\n## Aion: Empowering you to take control of your time, habits, and aspirations\n\n\u003e _Aion is an innovative habit management system designed to help you organize, track, and analyze your daily routine for improved physical, mental, and emotional well-being. It combines cutting-edge technology with a user-centered approach to make your productivity and self-improvement journey seamless and insightful._\n\u003e\n\u003e Whether you’re focusing on fitness, learning, or personal growth, Aion is your companion in building the discipline you need to achieve sustainable success.\n\n## **Table of Contents**\n\n- [Overview](#overview)\n- [Current and Upcoming Features](#current-and-upcoming-features)\n- [Project Management](#project-management)\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Development](#development)\n- [API Endpoints](#api-endpoints)\n    - [REST Endpoints](#rest-endpoints)\n    - [GraphQL Operations](#graphql-operations)\n- [License](#license)\n\n---\n\n## Overview\n\nAionAPI is a backend service written in **Go** that exposes both REST and GraphQL endpoints. It relies on **PostgreSQL** for persistent storage and **Redis** for caching. The project follows the **Ports \u0026 Adapters (Hexagonal)** architecture, enabling clear separation between domain logic and external technologies. Observability is handled with **OpenTelemetry**, **Jaeger**, **Prometheus**, and **Grafana**, while structured logging is powered by **Zap**.\n\n**Technology Stack**\n\n- Go 1.24\n- chi HTTP router and gqlgen for GraphQL\n- GORM ORM for PostgreSQL\n- Redis cache\n- Docker \u0026 Docker Compose\n- OpenTelemetry with Jaeger tracing and Prometheus metrics\n- Grafana dashboards\n- zap for structured logging\n\n---\n\n## Current and Upcoming Features\n\n- **Streamlined Habit Management** — organize and track your habits effortlessly.\n- **Data-Driven Insights** — visualize your progress and analyze behavior patterns.\n- **Modern Integrations** — sync with tools and platforms for extended usability.\n- **Developer-Friendly API** — clean, extensible endpoints for all your needs.\n\n---\n\n## Project Management\n\nThis repository is organized using a public [GitHub Projects board](https://github.com/users/lechitz/projects/1) where tasks, issues, and epics are tracked. The board provides visibility into ongoing work and completed milestones, keeping development structured and transparent.\n\n---\n\n## Installation\n\n### Prerequisites\n\n- [Go](https://go.dev/doc/install) 1.24 or newer\n- [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/) (for containerized development)\n\n### Steps\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/lechitz/AionApi.git\n   cd AionApi\n   ```\n2. **Install development tools** (optional)\n   ```bash\n   make tools-install\n   ```\n3. **Download Go dependencies**\n   ```bash\n   go mod tidy\n   ```\n\n---\n\n## Configuration\n\n1. **Copy the example environment file**\n   ```bash\n   cp infrastructure/docker/example/.env.example infrastructure/docker/dev/.env.dev\n   ```\n2. **Edit `.env.dev`** with values that match your local setup.\n\n\n3. **Start the development environment**\n   ```bash\n   make dev\n   ```\n4. **Run database migrations** (optional)\n   ```bash\n   make migrate-up\n   ```\n\n---\n\n## Development\n\nThe project is organized as follows:\n\n```text\ngithub/         - GitHub Actions workflows and issue templates\ncmd/            - application entry point\ninfrastructure/ - migrations, docker files, observability configs\ninternal/       - domain logic, use cases, ports, and adapters\nmakefiles/      - grouped Make targets for builds, codegen, testing\npkg/            - shared utilities\ntests/          - test data, mocks, and testing utilities\nDockerfile      - Docker build instructions for the API\nMakefile        - main Makefile orchestrating tasks\n.golangci.yml   - static analysis and linter configuration\n```\n\nRun `make help` to see all available commands. Frequently used ones include:\n\n```bash\nmake format    # format Go code\nmake lint      # run static analysis\nmake dev-up    # start the development environment\nmake dev-down  # stop and remove dev containers\nmake dev       # builds and runs the dev environment\nmake verify    # run full pipeline before committing\n```\n\n---\n\n## API Endpoints\n\nThe API exposes REST endpoints for user management, authentication, and health checks, along with GraphQL operations for categories and tags.\n\n### REST Endpoints\n- `GET  /aion-api/health-check/` — service status\n- `POST /aion-api/user/create` — create a new user\n- `GET  /aion-api/user/all` — list users\n- `GET  /aion-api/user/{user_id}` — retrieve a user by ID\n- `PUT  /aion-api/user/` — update user data\n- `PUT  /aion-api/user/password` — update the logged user's password\n- `DELETE /aion-api/user/` — soft delete the logged user\n- `POST /aion-api/auth/login` — obtain a JWT token\n- `POST /aion-api/auth/logout` — invalidate the user session\n\n### GraphQL Operations\nEndpoint: `/graphql`\n- Queries: `GetAllCategories`, `GetCategoryByID`, `GetCategoryByName`, `GetAllTags`, `GetTagByID`\n- Mutations: `CreateCategory`, `CreateTag`, `UpdateCategory`, `SoftDeleteCategory`\n\n---\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flechitz%2Faionapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flechitz%2Faionapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flechitz%2Faionapi/lists"}