{"id":17008452,"url":"https://github.com/linkdotnet/net8webapiworkshop","last_synced_at":"2025-03-29T17:26:07.461Z","repository":{"id":239548386,"uuid":"799840621","full_name":"linkdotnet/Net8WebAPIWorkshop","owner":"linkdotnet","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-29T14:21:30.000Z","size":237,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T18:41:02.010Z","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/linkdotnet.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":"2024-05-13T07:50:38.000Z","updated_at":"2024-05-23T22:25:45.000Z","dependencies_parsed_at":"2024-05-23T06:47:18.341Z","dependency_job_id":null,"html_url":"https://github.com/linkdotnet/Net8WebAPIWorkshop","commit_stats":null,"previous_names":["linkdotnet/net8webapiworkshop"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdotnet%2FNet8WebAPIWorkshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdotnet%2FNet8WebAPIWorkshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdotnet%2FNet8WebAPIWorkshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdotnet%2FNet8WebAPIWorkshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linkdotnet","download_url":"https://codeload.github.com/linkdotnet/Net8WebAPIWorkshop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246217792,"owners_count":20742269,"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-10-14T05:28:19.829Z","updated_at":"2025-03-29T17:26:07.426Z","avatar_url":"https://github.com/linkdotnet.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e.NET 8 Web API\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/Background.jpg\" alt=\"logo\"/\u003e\n  \u003cbr\u003e\n  \u003cem\u003eBuilding a Web API with .NET 8\u003c/em\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\n# Setup\n\nThe following tools are required to build and run this project:\n * [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0)\n * A Code editor like [Visual Studio Code](https://code.visualstudio.com/)\n * A browser of your choice that supports JavaScript and WebAssembly (so everything except Internet Explorer 11)\n\n# What is in the box?\nThere are three projects in this repository:\n * **ExpenseTracker**: A .NET 8 Web API project that serves as the backend for the frontend project.\n * **Frontend**: A Blazor WebAssembly project that serves as the frontend for the Web API project.\n * **ExpenseTracker.Tests**: A .NET 8 xUnit project that contains unit tests for the Web API project (WebApplicationFactory).\n  \nThe whole application is a simple Expense Tracker (CRUD application) that allows you to add, edit, delete and view expenses.\nIt uses a **SQLite** database to store the expenses (via Entity Framework Core) and **SignalR** to notify the frontend when the expenses are updated.\n\nThere are two branches:\n * **main**: Contains the final version of the application. So everything is already implemented.\n * **ui-only**: Contains the frontend project only. So you can implement the backend yourself.\n\nBut it would be nice to understand the single steps - therefore there are some branches that incrementally go from `ui-only` to `main`:\n * **step-1**: This branch adds the Web API project and the first controller via Minimal API. The controller returns a static list of expenses. It also includes CORS to make the frontend work!.\n * **step-2**: Adding **Entity Framework** with **SQLite** to enable retrieval via the database.\n * **step-3**: Implementing the POST request, so that the client can easily add new expenses and return them.\n * **step-4**: Implementing the PUT request, so that the client can easily update existing expenses.\n * **step-5**: Implementing the DELETE request, so that the client can easily delete existing expenses.\n * **step-6**: Moving everything to its own small file to cleanup \"the mess\".\n * **step-7**: Adding **SignalR** to notify the frontend when the expenses are updated.\n * **step-8**: Adding logging and our own first middleware\n * **step-9**: Adding the global exception handler\n * **step-10**: Adding the Tests (WebApplicationFactory)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkdotnet%2Fnet8webapiworkshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkdotnet%2Fnet8webapiworkshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkdotnet%2Fnet8webapiworkshop/lists"}