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 Walkthrough
guide to configure your environment- You must download the latest .NET SDK.
- To access the guide:
ctrl+shift+p
then typeWelcome: Open Walkthrough
. SelectGet Started with C# Dev Kit
.
- Open the root directory:
ctrl+k
thenctrl+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
.sln
file. - 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.