GitHub - mbrito/santanderTest: Test Santander

HackerNews API - Onion Architecture + CQRS + Repository

This project is a RESTful API built with ASP.NET Core that retrieves the top n stories from Hacker News , sorted by score. It implements:

Onion Architecture with separate projects CQRS (Command & Query Responsibility Segregation) Repository Pattern for abstracting data access In-memory caching to avoid overloading the external API Scalable and maintainable design

HackerNewsSolution/ │ ├── HackerNews.Domain/ # Domain entities and objects ├── HackerNews.Application/ # Business logic, interfaces, CQRS ├── HackerNews.Infrastructure/ # Repositories, HTTP clients, caching └── HackerNewsApi/ # RESTful API (entry point)

How to Clone Clone the repository:https://github.com/mbrito/santanderTest.git

How to Run

  • Run the API HackerNewsApi.csproj