{"id":49619752,"url":"https://github.com/anatoly-turcan/selvoc","last_synced_at":"2026-05-05T01:01:40.093Z","repository":{"id":295958798,"uuid":"907623627","full_name":"anatoly-turcan/selvoc","owner":"anatoly-turcan","description":"A production-grade example of microservices using clean architecture and DDD, built with TypeScript, NestJS, GraphQL, PostgreSQL, Keycloak, RabbitMQ, deployed on AWS with Terraform, Helm, CI/CD.","archived":false,"fork":false,"pushed_at":"2025-06-03T16:38:58.000Z","size":1170,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T05:06:35.879Z","etag":null,"topics":["aws","cicd","clean-architecture","ddd","docker","eks","graphql","keycloak","kubernetes","microservices","nestjs","nodejs","postgresql","rabbitmq","software-architecture","terraform","typeorm","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/anatoly-turcan.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-12-24T02:41:35.000Z","updated_at":"2025-09-02T04:33:06.000Z","dependencies_parsed_at":"2025-05-28T08:50:20.474Z","dependency_job_id":null,"html_url":"https://github.com/anatoly-turcan/selvoc","commit_stats":null,"previous_names":["anatoly-turcan/selvoc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anatoly-turcan/selvoc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatoly-turcan%2Fselvoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatoly-turcan%2Fselvoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatoly-turcan%2Fselvoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatoly-turcan%2Fselvoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anatoly-turcan","download_url":"https://codeload.github.com/anatoly-turcan/selvoc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatoly-turcan%2Fselvoc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32631058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aws","cicd","clean-architecture","ddd","docker","eks","graphql","keycloak","kubernetes","microservices","nestjs","nodejs","postgresql","rabbitmq","software-architecture","terraform","typeorm","typescript"],"created_at":"2026-05-05T01:01:36.847Z","updated_at":"2026-05-05T01:01:40.072Z","avatar_url":"https://github.com/anatoly-turcan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selvoc\n\n**Note:** This project is currently in development. Some features and\ncomponents are still being implemented.\n\nSelvoc is a production-grade application designed to demonstrate modern\nsoftware engineering practices. It leverages a microservices architecture,\nclean architecture principles, and a variety of cutting-edge technologies to\ncreate a scalable and maintainable system. Its concept centered around simplifying\nlanguage learning through a dynamic vocabulary builder (details of which are\nsecondary to the technical focus here).\n\n## Overview\n\n- **Languages**: TypeScript (Node.js)\n- **Framework**: NestJS\n- **Architecture**: Clean Architecture, Domain-Driven Design (DDD),\n  Microservices\n- **API**: GraphQL Federation (Apollo Federation). REST and gRPC are also\n  planned\n- **Database**: PostgreSQL, TypeORM\n- **Authentication**: Keycloak\n- **Message Broker**: RabbitMQ\n- **Deployment**: AWS, Terraform, Helm charts\n- **CI/CD**: GitHub Actions\n\n## Architecture\n\n- **User Microservice**: Manages user data and synchronizes with Keycloak.\n- **Chat Microservice**: Handles chat, membership, and messaging.\n- **Gateway**: Federates GraphQL APIs from all services.\n- more microservices are planned\n- **Shared Libraries**: Reusable NPM packages for common logic.\n\nAll services follow clean architecture and DDD principles, and communicate\nasynchronously via RabbitMQ.\n\n## Project Structure\n\n- `backend/`: Microservices\n- `configs/`: Configuration files (e.g., PostgreSQL init scripts)\n- `frontend/`: Placeholder for future frontend\n- `infrastructure/`: Terraform and Helm charts [detailed guide](infrastructure/README.md)\n- `packages/`: Shared NPM packages\n- `templates/`: Boilerplate for new services and packages\n\n## Getting Started\n\n1. **Clone the Repository**:\n\n    ```bash\n    git clone https://github.com/anatoly-turcan/selvoc.git\n    cd selvoc\n    ```\n\n2. **Set Up Environment Variables**:\n\n    ```bash\n    cp .env.example .env\n    ```\n\n3. **Start Services**:\n\n    ```bash\n    docker compose up -d\n    ```\n\n    (Or run each service individually; see each service's README.)\n\n## Usage\n\n- **Keycloak Admin**: [http://localhost:8080/admin/master/console/#/selvoc-local](http://localhost:8080/admin/master/console/#/selvoc-local)\n- **Gateway**: [http://localhost:3000/graphql](http://localhost:3000/graphql)\n- **User Service**:  [http://localhost:3001/graphql](http://localhost:3001/graphql)\n- **Chat Service**:  [http://localhost:3002/graphql](http://localhost:3002/graphql)\n\nHealth checks and version info are available at `/health` and `/version` on each service.\n\n### Sign In \u0026 Sign Up\n\nGo to Sign In page [http://localhost:8080/realms/selvoc-local/account/](http://localhost:8080/realms/selvoc-local/account/)\nand register a new user.\n\n### Get Access Token for API Calls\n\nAfter registration, you can get an access token using this cURL command:\n\n```bash\ncurl --location 'http://localhost:8080/realms/selvoc-local/protocol/openid-connect/token' \\\n  --header 'Content-Type: application/x-www-form-urlencoded' \\\n  --data-urlencode 'client_id=user-service' \\\n  --data-urlencode 'client_secret=rKRVLnPl2j5OIrSRVinZUHhPuaAWmMsd' \\\n  --data-urlencode 'username=YOUR_USERNAME' \\\n  --data-urlencode 'password=YOUR_PASSWORD' \\\n  --data-urlencode 'grant_type=password'\n```\n\n\u003e Note: Provided `client_secret` is valid only for `selvoc-local` realm.\n\n### Use The Access Token to Call GraphQL APIs\n\nEither use a GraphQL playground ([http://localhost:3000/graphql](http://localhost:3000/graphql)) or cURL.\nFor example:\n\n```bash\ncurl --request POST \\\n  --url http://localhost:3000/graphql \\\n  --header 'Content-Type: application/json' \\\n  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \\\n  --data '{\"query\":\"query Q { me { email } }\"}'\n```\n\n## Configuration\n\nAll configuration is via environment variables. See `.env.example` in the root and each service.\n\n## Infrastructure \u0026 CI/CD\n\nSelvoc uses Terraform and Helm to provision AWS infrastructure (EKS, RDS, RabbitMQ, ALB,\nRoute53, etc.) and deploy services. CI/CD is managed with GitHub Actions, including\ninfrastructure automation and microservice deployment.\n\nFor a detailed infrastructure and CI/CD guide, see [infrastructure/README.md](infrastructure/README.md).\n\n## Future Plans\n\n- Frontend (React)\n- WebSocket gateway for real-time features\n- Additional microservices (e.g., vocabulary, learning modules)\n- LLM integration for contextual explanations\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanatoly-turcan%2Fselvoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanatoly-turcan%2Fselvoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanatoly-turcan%2Fselvoc/lists"}