Skip to content

mrtripop/stock-management-spring-boot

Repository files navigation

Stock Management by Spring Boot

This project aim to learn Spring Boot best practice, architecture design, and improve my skill. Concept of this project for simulate manage stock system feature to know how it's work and what design is.

Prerequisite

Important

If you need to contribute with the project, first step, you need to set up commitlint for verify the commit message. I prepare for these steps for setting up by open terminal and run make setup-commitlint.

Configuration

Go to src/main/resourse file application.yml

Datasource Connection

Port 5432 is default port of the PostgreSQL

  • localhost - Local environment is not using docker network
  • postgres - Local environment is using docker network

Credentials of the PostgreSQL to establish connection

  • postgres is a setting value for username and password

Redis Connection

Port 6379 is default port of the Redis

  • localhost - Local environment is not using docker network
  • redis - Local environment is using docker network

Credentials of the Redis to establish connection

  • default is default username of the Redis.
  • redis is setting value in the docker compose --requirepass argument

How to run

Note: change datasource config correctly before start application.

  1. Start database container at first.
docker compose up -d postgres --build
  1. Check docker image
docker image ls
  1. Check docker container running
docker container ls
  1. Start application from terminal
mvn spring-boot:run
  1. Stop docker compose and remove container
docker compose down

URLs Resource

In this section, we define the API endpoint & URLs for any resource as a Swagger. Please run the service and access API specification via web browser.

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

Basic Knowledge

General

Code Pattern

Design System

Development

Deployment

Technical Challenge

Java

Spring Boot

Spring Email

Spring Data JPA

Redis Cache

RabbitMQ

  • [Dead-Letter Message]

Reference

About

Proof-of-concept for the stock management system design. This repo will come to showcase for design, develop, and deploy using modern technology stack.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages