❔ Creating a seperate .net project that serves as a backend for my react webapp
I want to use dotnet to serve as my backend for my webapp, although I have no idea how to set it up properly. Does anyone have any guideline on how to setup a separate project for dotnet. Additionally I will need to use an API endpoint as well, I would like to know how to create that too
4 Replies
You want a 'web api project'
Microsoft
ASP.NET Web APIs | Rest APIs with .NET and C#
Build secure REST APIs with C# that reach a broad range of clients, including browsers and mobile devices. Build and deploy on Linux, macOS, and Windows.
your frontend makes normal HTTP calls to this API (through javascript features like
fetch
) to get data
the API receives requests and lets you do all the classic backend stuff (logic, processing, database stuff...)Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.