{"id":23605876,"url":"https://github.com/fablecode/online-diary","last_synced_at":"2025-11-05T12:30:29.596Z","repository":{"id":91632780,"uuid":"238370599","full_name":"fablecode/online-diary","owner":"fablecode","description":"A private journal of your life journey ","archived":false,"fork":false,"pushed_at":"2024-10-28T19:45:52.000Z","size":25,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T13:13:31.862Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/fablecode.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":"2020-02-05T04:51:08.000Z","updated_at":"2024-08-27T18:02:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"826fc397-fb1a-41b9-8be3-0f405ff6f6c0","html_url":"https://github.com/fablecode/online-diary","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fablecode%2Fonline-diary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fablecode%2Fonline-diary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fablecode%2Fonline-diary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fablecode%2Fonline-diary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fablecode","download_url":"https://codeload.github.com/fablecode/online-diary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239458918,"owners_count":19642099,"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":[],"created_at":"2024-12-27T13:13:36.213Z","updated_at":"2025-11-05T12:30:29.565Z","avatar_url":"https://github.com/fablecode.png","language":"C#","readme":"# 📓 Online Diary Web Application\n\nWelcome to the **Online Diary Web Application** project! This application is a microservices-based system built using .NET 8, Docker, and Docker Compose. It's designed to be a scalable and extensible platform where users can securely manage their personal diary entries.\n\n## 🌟 Features\n\n- **User Management**: Register, login, and manage user profiles.\n- **Diary Management**: Create, update, delete, and view diary entries.\n- **Notifications**: Receive reminders and notifications.\n- **API Gateway**: Centralized access point for routing and load balancing.\n- **Microservices Architecture**: Each service is independently deployable and scalable.\n\n## 🏗️ Architecture Overview\n\nThis project follows a microservices architecture inspired by Microsoft's eShopOnContainers. The services include:\n\n- **API Gateway**: Routes requests to appropriate microservices.\n- **User Service**: Manages user-related operations (registration, authentication).\n- **Diary Service**: Handles CRUD operations for diary entries.\n- **Notification Service**: Sends notifications to users.\n\nEach service is containerized using Docker and managed by Docker Compose.\n\n![Architecture Diagram](https://user-images.githubusercontent.com/123456789/architecture-diagram.png) *(Insert your actual architecture diagram image URL here)*\n\n## 🚀 Getting Started\n\n### Prerequisites\n\nEnsure you have the following installed:\n\n- [Docker](https://www.docker.com/products/docker-desktop)\n- [Docker Compose](https://docs.docker.com/compose/install/)\n- [.NET SDK 8.0](https://dotnet.microsoft.com/download/dotnet/8.0)\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/yourusername/online-diary-app.git\ncd online-diary-app\n```\n\n### Build and Run the Application\nTo build and start all the services, simply run:\n```bash\ndocker-compose up --build\n```\n### Inter-service Communication\nRESTful APIs: Services communicate via HTTP using REST APIs.\nAsynchronous Messaging: Consider using RabbitMQ or Azure Service Bus for event-driven communication.\n\n## 🔒 Security\n\nThe application uses **Identity Server 4** for authentication and authorization, providing secure access to the microservices. The Identity Server handles OAuth 2.0 and OpenID Connect protocols, issuing tokens that are validated by each microservice.\n\n### Identity Server Configuration\n\n- **Identity Resources**: OpenID, Profile\n- **API Scopes**: `diaryApi`\n- **Clients**: Configured for client credentials flow\n\n### Protecting Microservices\n\nEach microservice validates tokens issued by Identity Server, ensuring only authorized users can access the services.\n\n### API Gateway Security\n\nThe API Gateway (Ocelot) is configured to enforce authentication and authorization, routing requests only when valid tokens are presented.\n\nFor more detailed setup instructions, see the [Identity Server Documentation](https://identityserver.io/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffablecode%2Fonline-diary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffablecode%2Fonline-diary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffablecode%2Fonline-diary/lists"}