Top stories: Displays the top ten stories that have been posted in the last 15 minutes sorted by the order of their score.
Top comments: Displays the top ten comments of a given story that has been sorted based on the number of child comments.
Past stories: Displays past stories that have been posted from the endpoint of top stories.
Cache Manager: To implement fast access of data rather fetching it and recalculating .
The fully-fledged server uses the following:Spring Framework Spring Boot Docker Postman
There are a number of third-party dependencies used in the project. Browse the Maven pom.xml file for details of libraries and versions used. To build the project, you will need:Java JDK 8 or higher Maven 3.1.1 or higher Git Follow these steps to build the server:
Clone the project.
Open a terminal window and navigate to the project root directory.
Run the following command to build the server:
$ mvn clean install
Refer to the Dockerfile.
Run the following command to create a Docker image:
$ docker build -t spring-boot-docker.jar .
Run the following command to start a Docker container:
$ docker run -p 9000:9000 spring-boot-docker.jar