Project One: Modern Web App with ASP.NET Core, Aspire, React, and Microsoft.Extensions.AI
Project One: Modern Web App with ASP.NET Core, Aspire, React, and Microsoft.Extensions.AI
Welcome to Project One! This page showcases a sample technology project that leverages a modern .NET stack with AI integration.
Overview
Project One is a web application built with:
- ASP.NET Core: Backend REST API
- Aspire: .NET orchestration and cloud-native patterns
- React: Interactive frontend UI
- Microsoft.Extensions.AI: AI-powered features and services
Features
- User authentication and profile management
- Real-time chat with AI-powered suggestions
- Dashboard with data visualizations
- Cloud-native deployment using Aspire
Architecture
graph TD
A[React Frontend] -->|REST API| B[ASP.NET Core API]
B -->|AI Services| C[Microsoft.Extensions.AI]
B -->|Orchestration| D[Aspire]
D -->|Cloud| E[Azure/AWS/GCP]
Key Technologies
| Technology | Purpose |
|---|---|
| ASP.NET Core | Backend API and business logic |
| Aspire | Orchestration, cloud-native patterns |
| React | Frontend SPA |
| Microsoft.Extensions.AI | AI integration (e.g., chat, analytics) |
Example: AI-Powered Chat Endpoint
ASP.NET Core Controller:
[ApiController]
[Route("api/chat")]
public class ChatController : ControllerBase
{
private readonly IChatAIService _chatAIService;
public ChatController(IChatAIService chatAIService)
{
_chatAIService = chatAIService;
}
[HttpPost]
public async Task<IActionResult> Post([FromBody] ChatRequest request)
{
var response = await _chatAIService.GetResponseAsync(request.Message);
return Ok(new { reply = response });
}
}
Running Locally
- Clone the repo
git clone https://github.com/your-org/project-one.git cd project-one - Start Aspire orchestration
dotnet aspire run - Start the React frontend
cd frontend npm install npm start - Open the app
$BROWSER http://localhost:3000
Learn More
This page is generated for a Jekyll site. Edit as needed for your project!