Welcome to the Redis OM .NET Skeleton App, this app is designed to provide you a jumping off point to add Redis OM .NET to your ASP.NET Core app, and get you up and running with some basic CRUD operations. For a detailed explanation of how everything in the app works, read through the App walkthrough.
This app is accompanied by a workshop video on YouTube (watch here).
- .NET 6 SDK
- A means of running Redis, this might be a Redis Cloud Account, or even just Docker desktop
You'll want to spin up Redis before running the app, to do so you can use the Redis Cloud, or you can just run docker run -p 6379:6379 -p 8001:8001 redis/redis-stack
If you are running in Docker, or you're running Redis locally you probably don't need to do anything here. If you are running anywhere else you'll just need to update the REDIS_CONNECTION_STRING
field in appsettings.json
to an appropriately formatted Redis URI.
Now just run dotnet run
to run the app, this will start the app up on https://localhost:7090
.
You can interact with the API either directly through the Swagger interface.