{"id":17458519,"url":"https://github.com/fahrettinsolak/e_commerce","last_synced_at":"2026-02-07T23:04:39.752Z","repository":{"id":257994503,"uuid":"856478012","full_name":"Fahrettinsolak/E_Commerce","owner":"Fahrettinsolak","description":"This E-Commerce Microservice Project uses a modern, scalable microservice architecture. It features Redis for caching, MongoDB and PostgreSQL for databases, and employs CQRS and the Mediator Design Pattern for efficient data management.","archived":false,"fork":false,"pushed_at":"2024-10-16T18:28:01.000Z","size":6976,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T18:09:13.301Z","etag":null,"topics":["asp-net-core","cqrs-pattern","csharp","dapper","identityserver4","jwt","mediator-pattern","mongodb","mssql","ocelot-gateway","postgresql","redis","repository-pattern","signalr","sqlite"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Fahrettinsolak.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}},"created_at":"2024-09-12T16:34:15.000Z","updated_at":"2024-10-16T18:28:06.000Z","dependencies_parsed_at":"2024-10-18T14:49:54.837Z","dependency_job_id":null,"html_url":"https://github.com/Fahrettinsolak/E_Commerce","commit_stats":null,"previous_names":["fahrettinsolak/e_commerce"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Fahrettinsolak/E_Commerce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fahrettinsolak%2FE_Commerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fahrettinsolak%2FE_Commerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fahrettinsolak%2FE_Commerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fahrettinsolak%2FE_Commerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fahrettinsolak","download_url":"https://codeload.github.com/Fahrettinsolak/E_Commerce/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fahrettinsolak%2FE_Commerce/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267294180,"owners_count":24065343,"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-07-27T02:00:11.917Z","response_time":82,"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":["asp-net-core","cqrs-pattern","csharp","dapper","identityserver4","jwt","mediator-pattern","mongodb","mssql","ocelot-gateway","postgresql","redis","repository-pattern","signalr","sqlite"],"created_at":"2024-10-18T04:05:32.937Z","updated_at":"2026-02-07T23:04:39.496Z","avatar_url":"https://github.com/Fahrettinsolak.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-Commerce Microservices Project\n\n## Contents\n- [Overview](#overview)\n- [Technologies Used](#technologies-used)\n- [Architecture](#architecture)\n- [Installation](#installation)\n- [Features](#features)\n- [API Documentation](#api-documentation)\n- [License](#license)\n\n---\n\n## Overview\n\nThis **E-Commerce Microservices Project** is a comprehensive system that provides a robust architecture for scalable and sustainable applications built using modern technologies. The project implements best practices such as **CQRS**, **Onion Architecture** and **Repository Design Pattern**, while utilizing powerful tools such as **Docker**, **Redis**, **MongoDB** and **PostgreSQL**.\n\nThe project provides **Google Drive integrated photo upload**, **JWT based authentication and authorization** and provides real-time communication with **SignalR**.\n\n## Technologies Used\n\n### Backend\n- **Asp.Net Core**: Forms the basis of API services.\n- **Dapper**: Lightweight ORM for database interactions.\n- **Redis**: Cache mechanism to increase performance.\n- **MongoDB**: NoSQL database to manage unstructured data.\n- **PostgreSQL**, **MSSQL**, **SQLite**: Relational databases for structured data.\n- **Identity Server**: Authentication and authorization management.\n- **Ocelot Gateway**: API Gateway for routing and management between microservices.\n- **CQRS**: Separates read and write operations.\n- **Mediator Design Pattern**: To provide clean communication between services.\n- **Repository Design Pattern**: To abstract business logic and database operations.\n\n- **JWT**: To secure API endpoints with JWT-based authentication.\n\n- **SignalR**: For real-time data streaming.\n\n### DevOps\n- **Docker**: Containerization for easy deployment and environment consistency.\n\n- **Swagger**: API documentation and testing interface.\n\n- **Postman**: API testing and development tool.\n\n### Other\n- **Google Drive API**: Used for photo uploads.\n\n- **Ajax**: For asynchronous requests from frontend.\n\n- **Rapid API**: External API consumption.\n\n## Architecture\n\nThe system follows the **Onion Architecture** architecture to ensure independence between layers.\n\n- **API Gateway**: Manages communication between clients and services with Ocelot.\n- **Microservices**: Services that handle specific parts of the system, such as user management, order processing, product management.\n\n- **Database Layer**: **SQL** and **NoSQL** databases are used depending on the service needs.\n\n- **Cache**: Response times are improved by using **Redis** for frequently requested data.\n\n- **Security**: Security is provided by using **Identity Server** and **JWT Bearer Token**.\n\n### CQRS Implementation\n\nThe project uses the **CQRS (Command Query Responsibility Segregation)** pattern to separate read and write operations. This approach increases scalability and makes complex business logic easier to manage.\n\n### Mediator Pattern\n\nWith the **Mediator** pattern, the system separates requests from business logic, making the system more modular and maintainable.\n\n## Installation\n\n### Requirements\n- [.NET 6.0 SDK](https://dotnet.microsoft.com/download)\n- [Docker](https://www.docker.com/get-started)\n- [PostgreSQL](https://www.postgresql.org/download/)\n- [MongoDB](https://www.mongodb.com/try/download/community)\n\n### Installation\n\n1. Clone the project:\n```bash\ngit clone https://github.com/Fahrettinsolak/E_Commerce.git\n```\n\n2. Go to the project directory:\n```bash\ncd E_Commerce\n```\n\n3. Create and run the Docker containers:\n```bash\ndocker-compose up --build\n```\n\n4. Perform database migrations:\n```bash\ndotnet ef database update\n```\n\n5. Implementation It will be up and running at http://localhost:5000.\n\n### Environment Variables\n\nBefore running the project, make sure the following **environment variables** are configured:\n\n- **DB_CONNECTION_STRING**: Connection string for PostgreSQL or MSSQL.\n- **MONGO_CONNECTION_STRING**: MongoDB connection string.\n- **REDIS_CONNECTION_STRING**: Redis connection string.\n- **GOOGLE_DRIVE_API_KEY**: API key for Google Drive integration.\n\n## Features\n\n- **Authentication and Authorization**: Secure authentication using JWT and Identity Server.\n- **Photo Upload**: Ability to upload photos directly to Google Drive in the system.\n- **Real-Time Notifications**: Real-time updates using SignalR.\n- **API Gateway**: Centralized routing with Ocelot.\n- **Postman Collection**: Pre-configured Postman requests for easy testing.\n\n- **Swagger Integration**: Auto-generated documentation for the API.\n\n## API Documentation\n\nAPI documentation is provided by Swagger. Once the application is running, you can access the Swagger interface via the following URL:\n\n- [Swagger](http://localhost:5000/swagger)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffahrettinsolak%2Fe_commerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffahrettinsolak%2Fe_commerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffahrettinsolak%2Fe_commerce/lists"}