Giter Site home page Giter Site logo

gitstatus's Introduction

Approach and Assumption

  • REST API Development: This Spring Boot Maven project is initialized with REST API, OpenAPI, and Actuator functionality.
  • OpenAPI Documentation: Integrates OpenAPI documentation in controller for API exploration.
  • Spring Boot Actuator: Exposes health and monitoring endpoints for application management.
  • Configurable Properties: Leverages properties files (e.g., config.properties) to configure:
  • Request Timeout: Set the maximum time (in milliseconds) a REST client waits for a response before timing out.
  • Connection Pool Size: Control the number of concurrent connections the REST client can maintain.
  • Popularity Score Threshold: Define the minimum score required for a repository to be considered popular.
  • REST Client Configuration: Utilizes RestTemplate as the REST client with configurable timeout and connection pool size.
  • Secure Access Token: Stores the access token for authentication in a properties file and sends it as an "Authorization" header with REST client requests.
  • Production Readiness: Dockerfile and Docker Compose configurations are included to ensure production readiness and scalability for integration with other services.

Prerequisites

  • Docker 19.03.x (for production level readiness)
  • Docker Compose 1.25.x
  • Maven 3

Used Technologies

  • Spring Boot 3
  • Lombok
  • Actuator

How to run

Package application as a JAR file

mvn clean install -DskipTests

Package application as a JAR file

mvn test

Run with docker compose

docker-compose up -d

Run as Java -jar

java -jar target/githubrepo-0.0.1-SNAPSHOT.jar

Health status

http://localhost:8080/actuator/health

Open api docs

http://localhost:8080/swagger-ui/index.html

gitstatus's People

Contributors

shohelasad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.