This repository demonstrates an application utilizing Redis distributed caching implemented with Vite React and .NET 6 using the template provided in Visual Studio 2022. Additionally, it includes instructions for setting up Redis on a Windows environment.
- Vite React
- .NET 6
- Redis
- Visual Studio 2022
- Node.js (for Vite React)
- Redis for Windows - Download and install Redis on Windows
-
Clone this repository.
-
- Open the solution in Visual Studio 2022.
- Ensure Redis is installed and running on your Windows machine.
- Build and run the ASP.NET Core application. This starts the backend server.
-
- Navigate to the
client
directory. - Install dependencies with
npm install
oryarn install
. - Start the Vite React app with
npm run dev
oryarn dev
.
- Navigate to the
-
Access the application:
- The frontend should be accessible at
http://localhost:3000
. - Backend API endpoints are available as per the configured routes.
- The frontend should be accessible at
- Download Redis for Windows from the official Redis website.
- Install Redis following the provided instructions.
- Start the Redis server.
Feel free to utilize this repository as a reference for implementing Redis distributed caching in your own projects. Customize and expand upon it according to your project's requirements.
Contributions are welcome! If you'd like to improve this project or add new features, feel free to open issues and pull requests. Follow the guidelines outlined in the CONTRIBUTING.md file.
This project is licensed under the MIT License. You are free to modify, distribute, and use the code in your own projects as per the terms of this license.