A dual-service architecture designed to generate, store, and manage AI-enhanced content using .NET 9 and Hugging Face.
This project uses User Secrets to keep API keys secure and out of the source code. You must configure these keys locally to run the services.
Open a terminal in the Content API project folder and run:
dotnet user-secrets init
dotnet user-secrets set "ApiSettings:ApiKey" "SecretKey123"
Open a terminal in the LLM Proxy API project folder and run:
dotnet user-secrets set "InternalApiKey" "SecretKey123"
dotnet user-secrets set "HuggingFace:ApiKey" "YOUR_HUGGING_FACE_TOKEN_HERE"
To start both services at once in Visual Studio: Right-click on the Solution in the Solution Explorer. Select Configure Startup Projects.... Select the Multiple startup projects radio button. Set the Action to Start for both Content API and LLM Proxy API. Press F5 to launch both services.
Service-to-Service Security: Internal API-Key validation via headers. Resilience: Fallback logic for external AI service failures. Performance: Memory caching and database pagination. Architecture: Repository Pattern with DTO mapping.
C#
100.0%
A dual-service architecture designed to generate, store, and manage AI-enhanced content using .NET 9 and Hugging Face.
This project uses User Secrets to keep API keys secure and out of the source code. You must configure these keys locally to run the services.
Open a terminal in the Content API project folder and run:
dotnet user-secrets init
dotnet user-secrets set "ApiSettings:ApiKey" "SecretKey123"
Open a terminal in the LLM Proxy API project folder and run:
dotnet user-secrets set "InternalApiKey" "SecretKey123"
dotnet user-secrets set "HuggingFace:ApiKey" "YOUR_HUGGING_FACE_TOKEN_HERE"
To start both services at once in Visual Studio: Right-click on the Solution in the Solution Explorer. Select Configure Startup Projects.... Select the Multiple startup projects radio button. Set the Action to Start for both Content API and LLM Proxy API. Press F5 to launch both services.
Service-to-Service Security: Internal API-Key validation via headers. Resilience: Fallback logic for external AI service failures. Performance: Memory caching and database pagination. Architecture: Repository Pattern with DTO mapping.
C#
100.0%