Bamboo Card Hacker News API Test
This project is a .NET 8 web API application developed in Visual Studio 2022.
- Clone this repository to your local machine.
- Open the solution file (
HackerNews.sln
) in Visual Studio 2022. - Ensure that the correct .NET SDK version (8.0) is selected for the solution.
- Build the solution by selecting
Build
>Build Solution
from the Visual Studio menu. - Set the startup project by right-clicking the desired project in the Solution Explorer, then selecting
Set as Startup Project
. - Press
F5
or selectDebug
>Start Debugging
to run the project. - Alternatively, you can run the project without debugging by pressing
Ctrl
+F5
or selectingDebug
>Start Without Debugging
.
- As it is a basic test, I have not added exception handling because there were no details on what details should be returned to the customer if something is broken.
- To protect the Hacker News server I have used the MemoryCache for the best story details. Still, there are no details on how often the best stories ID list is updated so I have assumed it is constantly updated and decided not to use cache for always getting the latest IDs.