Sign inSign up

malcolmleehan/springbootapp

By malcolmleehan

Updated almost 2 years ago

Basic Spring Boot app with MongoDB, API hit counter, and random number generator. Part home_lab_k8s

Image
Languages & frameworks
Databases & storage
0

331

malcolmleehan/springbootapp repository overview

Simplified Description for Docker Hub

Repository Name: malcolmleehan/springbootapp

Description:

This Docker image contains a basic Spring Boot application that interacts with a MongoDB database. It's part of a project focused on building and deploying a small Kubernetes cluster on-premises.

## Features

- **API Hit Counter**: Tracks the number of times a specific API endpoint is accessed.
- **Random Number Generator**: Maintains a list of the last 30 random numbers generated.
- **Health Check**: Provides an endpoint to check the application's health status.

## Quick Start

1. **Pull the Image**:
   ```bash
   docker pull malcolmleehan/springbootapp:latest
  1. Run the Container:
    docker run -d -p 8080:8080 malcolmleehan/springbootapp:latest
    

API Endpoints

  • GET /api/hit: Increments the API hit count.
  • GET /api/stats: Returns the hit count and the last 30 random numbers.
  • GET /api/health: Returns the application's health status.

More Information

For full details, including how to build and deploy this application, visit the GitLab repository:

GitLab Repository

Tag summary

Content type

Image

Digest

sha256:872cef3c1

Size

115 MB

Last updated

almost 2 years ago

docker pull malcolmleehan/springbootapp