This repo contains a basic demonstration of CRUD operations using Minimal APIs and EntityFrameWork.
- Clone the Repo:
git clone https://github.com/rsalus/StarterAPI.git - CD to root directory:
cd StarterAPI/
- Download C# Dev Kit
- Follow the
Welcome: Open Walkthroughguide to configure your environment- You must download the latest .NET SDK.
- To access the guide:
ctrl+shift+pthen typeWelcome: Open Walkthrough. SelectGet Started with C# Dev Kit.
- Open the root directory:
ctrl+kthenctrl+o. SelectStarterAPI(it should contain thesrc/directory). - Open Program.cs in the code editor (double-click on it).
- Install the .NET 9 SDK with the Visual Studio Installer.
- Open the
.slnfile. - Open the Program.cs in the code editor.
var app = WebApplication.Create(args);
app.MapGet("/", () => "Hello World!");
app.Run();
Run curl http://localhost:5000 in your terminal to see the result.