{"id":22143759,"url":"https://github.com/DevD4v3/orders-sample","last_synced_at":"2025-10-12T13:30:23.886Z","repository":{"id":212366979,"uuid":"731307438","full_name":"DevD4v3/orders-sample","owner":"DevD4v3","description":"A sample order system that uses ASP.NET Core","archived":false,"fork":false,"pushed_at":"2023-12-16T18:42:11.000Z","size":31,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-23T02:42:50.560Z","etag":null,"topics":["aspnetcore","csharp","dotnet","vertical-slice-architecture","webapi"],"latest_commit_sha":null,"homepage":"","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/DevD4v3.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-13T19:39:36.000Z","updated_at":"2025-05-14T04:30:07.000Z","dependencies_parsed_at":"2023-12-16T19:48:48.570Z","dependency_job_id":"8abf62e3-6340-4ea2-a261-95f916cb63a5","html_url":"https://github.com/DevD4v3/orders-sample","commit_stats":null,"previous_names":["mrdave1999/orders-sample","devd4v3/orders-sample"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DevD4v3/orders-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevD4v3%2Forders-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevD4v3%2Forders-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevD4v3%2Forders-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevD4v3%2Forders-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevD4v3","download_url":"https://codeload.github.com/DevD4v3/orders-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevD4v3%2Forders-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011443,"owners_count":26084947,"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-10-12T02:00:06.719Z","response_time":53,"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":["aspnetcore","csharp","dotnet","vertical-slice-architecture","webapi"],"created_at":"2024-12-01T22:15:57.454Z","updated_at":"2025-10-12T13:30:23.492Z","avatar_url":"https://github.com/DevD4v3.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sample order system \n\nA sample order system that uses ASP.NET Core.\n\n## Technologies used\n\n- Web API\n  - [ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-7.0?view=aspnetcore-7.0)\n  - [Pomelo.EntityFrameworkCore.MySql](https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql)\n  - [Scrutor](https://github.com/khellang/Scrutor)\n  - [Fluent Validation](https://github.com/FluentValidation/FluentValidation)\n  - [DotEnv.Core](https://github.com/MrDave1999/dotenv.core)\n  - [SimpleResults](https://github.com/MrDave1999/SimpleResults)\n\n- Testing\n  - [NUnit](https://github.com/nunit/nunit)\n  - [Fluent Assertions](https://github.com/fluentassertions/fluentassertions)\n  - [Respawn](https://github.com/jbogard/Respawn)\n  - [JustMockLite](https://github.com/telerik/JustMockLite)\n\n## Patterns used\n\n- [Vertical Slice Architecture](https://garywoodfine.com/implementing-vertical-slice-architecture)\n- [Repository pattern](https://martinfowler.com/eaaCatalog/repository.html)\n- [CQRS](https://en.wikipedia.org/wiki/Command_Query_Responsibility_Segregation) without [MediatR](https://github.com/jbogard/MediatR)\n\n## Common design principles\n\n- Separation of concerns\n- Explicit dependencies\n- Open-closed principle\n\n## Installation\n\n- Web API\n  - Install [.NET SDK 7.0](https://dotnet.microsoft.com/en-us/download/dotnet/7.0).\n    - This is because **Pomelo.EntityFrameworkCore** is not yet support with EF Core 8. \n  - Install [.NET SDK 8.0](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) to be able to use [C# 12](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-12).\n  - Install [MariaDb Server](https://mariadb.com/downloads) and set the user as root.\n  - Create a file called `.env` with the command:\n  ```.env\n  copy src/WebApi/.env.example src/WebApi/.env\n  ```\n  - Configure the connection string in the .env file.\n  - Apply migrations with the command:\n  ```sh\n  dotnet ef database update --project src/WebApi/WebApi.csproj\n  ```\n  - Run `dotnet run` for a dev server. Navigate to `https://localhost:7120/swagger/`.\n\n- Testing\n  - Create a file called `test.env` with the command:\n  ```.env\n  copy tests/IntegrationTests/sample.env tests/IntegrationTests/test.env\n  ```\n  - Specify your credentials in the `test.env`.\n  - Run the `dotnet test` command to run the tests.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDevD4v3%2Forders-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDevD4v3%2Forders-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDevD4v3%2Forders-sample/lists"}