CNL Everbridge Technical Challenge
This is a simple solution to an exercise, part of a job interview. It presents a minimalistic website in the form of a blog that is built with Piranha CMS. The blog fetches data using the NewsAPI.
NOTE: Code logic is built with C#
NOTE v2: Although the given time to solve the problem was 2 hours (and days ago), I am hoping that you will find my work satisfying. The actual time programming took ~2h 17min - while setting up the environment took me an hour and a half (usually done within minutes).
- If using Node, download it here: Node Use the commands:
dotnet restore
dotnet run
- If using Visual Studio, download it here: Visual Studio 2019 Just build & run the application
- .NET Core 3.1
- This download specifically
- The application seems to satisfy most of the requirements. There is a home page, which does not provide any functionality but felt necessary to have. The blog page displays a collection of articles (posts) and the relevant information, such as:
- Title, Author, Date Published, Description, Content, Comments and Image (if available).
- Anyone may post comments on the blog posts provided that all required fields are filled.
- The very first time you visit
/blog
you will need to refresh the page to get all articles (posts) - There is a IP Geoocation functionality developed using a free API, but due to limited testing it is commented out. Therefore articles shown are for Great Britan only (top headlines)
- Working on
main
(master) branch and no other branches; pushing many changes at once
- You may navigate to the manager view to see the actual posts there (using admin/password)
- Adding new pages is not recommended
Hristiyan Anev