{"id":25567583,"url":"https://github.com/mamataliev-dev/blog-microservices","last_synced_at":"2026-05-01T16:33:58.376Z","repository":{"id":277513104,"uuid":"932315293","full_name":"mamataliev-dev/blog-microservices","owner":"mamataliev-dev","description":"User Service for Blog Microservices: Handles auth, user data via REST API \u0026 gRPC, with Redis caching and full testing.","archived":false,"fork":false,"pushed_at":"2025-02-27T16:42:47.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-01T13:56:26.122Z","etag":null,"topics":["flask-restful","grpc-python","postgresql","python3","redis","sqlalchemy"],"latest_commit_sha":null,"homepage":"","language":"Python","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/mamataliev-dev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-13T18:02:45.000Z","updated_at":"2025-04-25T19:33:45.000Z","dependencies_parsed_at":"2025-05-29T12:19:19.080Z","dependency_job_id":null,"html_url":"https://github.com/mamataliev-dev/blog-microservices","commit_stats":null,"previous_names":["mamataliev-dev/blog-microservices"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mamataliev-dev/blog-microservices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamataliev-dev%2Fblog-microservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamataliev-dev%2Fblog-microservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamataliev-dev%2Fblog-microservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamataliev-dev%2Fblog-microservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mamataliev-dev","download_url":"https://codeload.github.com/mamataliev-dev/blog-microservices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamataliev-dev%2Fblog-microservices/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32505106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["flask-restful","grpc-python","postgresql","python3","redis","sqlalchemy"],"created_at":"2025-02-20T23:32:25.535Z","updated_at":"2026-05-01T16:33:58.363Z","avatar_url":"https://github.com/mamataliev-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 User Service for Blog Microservices\n\n## 🌟 Overview\nThe **User Service** is a core component of the Blog Microservices project. It handles user authentication, authorization, and management while exposing a **RESTful API** for seamless interaction with other services using **gRPC**.\n\n---\n\n## 🎯 Features\n✅ **User Data Management** – Create, read, update, and delete user profiles.  \n✅ **Authentication \u0026 Authorization** – Secure login \u0026 token-based authentication.  \n✅ **RESTful API** – Standard API endpoints for user operations.  \n✅ **gRPC Communication** – High-performance inter-service communication.  \n✅ **Caching** – Redis integration for enhanced performance.  \n✅ **Unit Testing** – Comprehensive test coverage for API \u0026 gRPC functionalities.  \n\n---\n\n## 🛠 Tech Stack\n- **Python \u0026 Flask** – For building the RESTful API.\n- **PostgreSQL** – Relational database for user data storage.\n- **Redis** – Caching for faster access and improved performance.\n- **gRPC** – Efficient microservice communication.\n- **Testing** – Unit tests using `pytest`.\n\n---\n\n## 🔧 Installation \u0026 Setup\n\n### 📥 Clone the Repository\n```bash\ngit clone https://github.com/mamataliev-dev/blog-microservices.git\ncd blog-microservices/UserService\n```\n### 🏗 Set Up a Virtual Environment\n```bash\npython -m venv venv\nsource venv/bin/activate  # On Windows: venv\\Scripts\\activate\n```\n### 📦 Install Dependencies\n```bash\npip install -r requirements.txt\n```\n---\n\n## 🗄 Database Setup\n1. Ensure PostgreSQL is installed and running.\n2. Create a database for the User Service:\n\n   ``` sql\n   CREATE DATABASE userservice;\n   ```\n3. Update the database connection settings in `config.py`:\n   \n   ``` sql\n   SQLALCHEMY_DATABASE_URI = 'postgresql://username:password@localhost:5432/userservice'\n   ```\n---\n\n## ⚡️ Redis Setup\n1. Install and start Redis:\n   - macOS:  \n\n     ``` bash\n     brew install redis \u0026\u0026 redis-server\n     ```\n   - Ubuntu:  \n    \n     ``` bash\n     sudo apt install redis-server \u0026\u0026 redis-server\n     ```\n    - Windows: Use WSL or download Redis binaries.\n2. Update Redis connection settings in config.py:\n   \n   ``` bash\n   REDIS_HOST = 'localhost'\n   REDIS_PORT = 6379\n   ```\n   \n---\n\n## ⚙️ Configuration\nCustomize settings via environment variables or `config.py`:\n- Database URL: PostgreSQL connection string (e.g., `postgresql://user:pass@localhost:5432/userservice`).\n\n- Redis Host \u0026 Port: Set Redis connection details (e.g., `localhost:6379`).\n- gRPC Settings: Define endpoints and credentials for service communication.\n\n---\n\n## 🚀 Running the Service\nStart the Flask server:\n```python\npython run.py\n```\nThe service will be available at `http://localhost:5000` (or as defined in your config).\n\n---\n\n## 🔗 gRPC Integration\nThis service leverages gRPC for microservice communication. \nProtocol buffer definitions are located in the proto/ directory. \nRefer to `user_service.py` for setup details.\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamataliev-dev%2Fblog-microservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmamataliev-dev%2Fblog-microservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamataliev-dev%2Fblog-microservices/lists"}