.NET 8 RESTful API for news article discovery, management, and bookmarking with Clerk authentication and PostgreSQL persistence.
📰 News hydration from NewsAPI • 🔍 Search & pagination • ❤️ User bookmarks • 📝 Article creation & management • 🔐 Clerk JWT authentication • 🗄️ PostgreSQL persistence
.NET 8 • C# 12 • Entity Framework Core 8 • PostgreSQL • xUnit • Moq • Swagger/OpenAPI • Render deployment
- Controllers: HTTP endpoints with authorization and validation
- Services: Business logic with dependency injection
- Repositories: Data access patterns with interfaces
- Models: Domain entities (NewsArticles, UserArticle, UserBookmark)
- DTOs: Data transfer objects for API responses
- Migrations: EF Core migrations for schema management
Requirements: .NET 8 SDK, PostgreSQL (local or Supabase)
dotnet restore # Restore dependencies
dotnet run # Dev server (http://localhost:5000)
dotnet test # Run all tests
dotnet build -c Release # Production build