Skip to content

A Spring boot inventory application that exposes product's inventory status on REST API endpoints

Notifications You must be signed in to change notification settings

stakater-lab/stakater-nordmart-inventory

Repository files navigation

stakater-nordmart-inventory

Overview

A Spring boot inventory application that exposes product's inventory status on REST API endpoints.

Dependencies

It requires following things to be installed:

  • Java: ^8.0
  • Maven
  • Postgres

Deployment strategy

Local deployment

To run the application locally use the command given below:

mvn spring-boot:run

Docker

To deploy app inside a docker container

  • Create a network if it doesn't already exist by executing

    docker network create --driver bridge nordmart-apps
  • Build jar file of the app by executing

    mvn clean package
  • Next build the image using

    docker build -t inventory .
  • Finally run the image by executing

    docker run -d --name inventory --network nordmart-apps -p 8081:8080 inventory

Helm Charts

Pre-requisites

  1. Apply dependencies from deployment/dependencies kubectl apply -f deployment/dependencies
  2. With helm helm install stakater/application -f deployment/values.yaml. Without helm, kubectl apply -f deployment/manifests

About

A Spring boot inventory application that exposes product's inventory status on REST API endpoints

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published