A .NET 9 Blazor application showcasing the integration of LLMs with the Tanzu Platform for Cloud Foundry. This application recommends transportation options based on origin, destination, and user preferences.
- Natural language processing for travel queries
- Integration with Google Maps API for real travel data
- AI-powered analysis and recommendations
- Interactive UI with follow-up question capability
- Deployed as a Cloud Foundry application utilizing Tanzu GenAI services
- .NET 9: The latest version of the .NET framework
- Blazor Server: For interactive web UI
- Microsoft.Extensions.AI: Microsoft's framework for LLM integration
- Steeltoe: Libraries for Cloud Foundry integration
- Tailwind CSS: Utility-first CSS framework for modern UI
- .NET 9 SDK
- Google Maps API key
- Access to an LLM service compatible with the OpenAI API format
- (Optional) Access to Tanzu Platform for Cloud Foundry with GenAI tile
- Clone this repository
- Configure environment variables in
src/.env - Build and run the application:
# Build the solution
dotnet build
# Run the web project
dotnet run --project src/TravelAdvisor.Web- Open your browser to
https://localhost:5000
For more detailed instructions, see:
The application follows a clean architecture pattern with three main projects:
- TravelAdvisor.Core: Domain models, interfaces, and core business logic
- TravelAdvisor.Infrastructure: Implementation of services defined in Core
- TravelAdvisor.Web: Blazor Server web application
The application is designed to be deployed to Tanzu Platform for Cloud Foundry:
- Integrates with the GenAI tile for access to managed LLM services
- Uses Steeltoe for service bindings and health monitoring
- Includes a manifest for easy deployment with
cf push
See the Deployment Guide for detailed instructions.
For detailed information about the application, refer to the following documentation:
- Architecture Overview: System architecture, components, and data flow
- API Documentation: Detailed API reference and usage examples
- Configuration Guide: Environment variables and configuration options
- Developer Guide: Setup, development workflow, and best practices
- Deployment Guide: Deployment instructions for Tanzu Platform
- User Guide: End-user instructions for using the application
- Extension Guide: How to extend the application with custom features
- Microsoft for Microsoft.Extensions.AI
- Steeltoe team for Cloud Foundry integration libraries
- Tailwind CSS team for the UI framework