{"id":20270640,"url":"https://github.com/sararasoulian/webapi-sample-dotnet-7","last_synced_at":"2025-07-04T18:09:55.449Z","repository":{"id":192290769,"uuid":"683768550","full_name":"SaraRasoulian/WebAPI-Sample-DotNet-7","owner":"SaraRasoulian","description":"🌱 A Sample Web API Application .NET 7","archived":false,"fork":false,"pushed_at":"2024-07-25T06:12:49.000Z","size":79,"stargazers_count":34,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T04:13:55.107Z","etag":null,"topics":["asp-net-core","clean-architecture","code-first-approach","docker","entity-framework-core","postgresql","repository-pattern","restful-api","tdd","unitofwork-pattern"],"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/SaraRasoulian.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":"2023-08-27T16:35:30.000Z","updated_at":"2025-03-14T21:41:06.000Z","dependencies_parsed_at":"2023-09-04T01:27:43.339Z","dependency_job_id":"76f1a0a4-2e5a-42f3-803c-fd4e3e4676b0","html_url":"https://github.com/SaraRasoulian/WebAPI-Sample-DotNet-7","commit_stats":null,"previous_names":["sararasoulian/asp.netcore-webapi-sample","sararasoulian/dotnet-webapi-sample","sararasoulian/.netwebapi-sample","sararasoulian/webapi-sample-dotnet-7"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SaraRasoulian/WebAPI-Sample-DotNet-7","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraRasoulian%2FWebAPI-Sample-DotNet-7","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraRasoulian%2FWebAPI-Sample-DotNet-7/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraRasoulian%2FWebAPI-Sample-DotNet-7/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraRasoulian%2FWebAPI-Sample-DotNet-7/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaraRasoulian","download_url":"https://codeload.github.com/SaraRasoulian/WebAPI-Sample-DotNet-7/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraRasoulian%2FWebAPI-Sample-DotNet-7/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263594623,"owners_count":23485877,"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":["asp-net-core","clean-architecture","code-first-approach","docker","entity-framework-core","postgresql","repository-pattern","restful-api","tdd","unitofwork-pattern"],"created_at":"2024-11-14T12:32:13.831Z","updated_at":"2025-07-04T18:09:55.427Z","avatar_url":"https://github.com/SaraRasoulian.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ASP.NETCore Web API Sample\n\nThis repository is a sample ASP.NET Core Web API (.NET 7) project.\n\n## Features \u0026 Technologies\n- ASP.NET Core Web API\n- Entity Framework Core\n- Clean Architecture\n- Unit Of Work Pattern\n- Repository Service Pattern\n- TDD\n- PostgreSQL\n- Docker\n\n## Get started\n\n#### 1. Clone the repository\n\n```\ngit clone https://github.com/SaraRasoulian/WebAPI-Sample-DotNet-7.git\n```\n#### 2. Start with docker compose\n\nMake sure [docker](https://docs.docker.com/get-docker/) is installed on your machine.\n\nRun the following command in project directory:\n\n```\ndocker-compose up -d\n```\n\nDocker compose in this project includes 3 services: web API application, postgres and pgadmin4.\n\n- Web API application will be running and listening at `http://localhost:5000`\n\n- Postgres database will be listening at `http://localhost:5433`\n\n- PgAdmin4 web interface will be listening at `http://localhost:8080`\n\n\nTo apply your modified code, you can add build option:\n\n```\n  docker-compose up -d --build\n```\n\nTo stop and remove all containers, use the following command:\n\n```\n  docker-compose down\n```\n\n\n#### 3. Run the migrations\n\nOpen Sample.sln file in visual studio, then in package manager console tab, run:\n\n```\nupdate-database\n```\n\nThis command will generate the database schema in postgres container.\n\n## Contributions\nContributions are welcomed! If you identify areas for improvement, please feel free to raise an issue or submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsararasoulian%2Fwebapi-sample-dotnet-7","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsararasoulian%2Fwebapi-sample-dotnet-7","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsararasoulian%2Fwebapi-sample-dotnet-7/lists"}