This repository contains the sample project for the Microsoft Learn module Build your first Orleans app using ASP.NET Core 7.0. The app demonstrates basic Orleans concepts, such as working with Grains, Silos and persistent state. These concepts are used to build a simple URL shortener utility app. The project also shows how to integrate these features with a basic web service using a Minimal API.
- Orleans integration using Grains and Silos.
- Persistent state to save the shortened URLs.
- Web service endpoints to create and redirect shortened URLs.
- Run the command
git clone https://github.com/Azure-Samples/build-your-first-orleans-app-aspnetcore.git
in your preferred terminal to clone the project to a folder on your computer. - Run the command
cd build-your-first-orleans-app-aspnetcore/OrleansURLShortener
to navigate down into the correct project folder. - Run the command
dotnet run
from your editor or terminal. The app should build and launch in the browser, and then display aHello World
message to verify it is working correctly. - Open the project in your preferred editor to begin modifying the project. There are two other existing endpoints at
/shorten
and/go
to create and use redirects.