Skip to content

deepganguly/Legacy-OrderManagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Legacy Java Order Management System

This is a monolithic legacy Java application for a small retail business, built with Spring Boot, JSP, and JDBC (no REST APIs, no cloud dependencies). It manages customers, products, and orders, and uses a local H2 database. This app is intended for later modernization to Azure.

Features

  • Customer management (add/view customers)
  • Product catalog (add/view products)
  • Order creation (place/view orders)
  • Monolithic structure, server-rendered JSP pages
  • Local H2 database (no cloud, no containers)

Prerequisites

  • Java 11+ (✅ You have Java 23 installed)
  • Apache Maven 3.6+ (❌ Not installed - see installation steps below)

Maven Installation

Option 1: Download and Install Maven

  1. Download Maven from https://maven.apache.org/download.cgi
  2. Extract to a folder (e.g., C:\apache-maven-3.9.6)
  3. Add Maven's bin directory to your system PATH
  4. Restart your terminal and verify with mvn -version

Option 2: Use Maven Wrapper (No installation needed)

If you prefer not to install Maven globally, you can use the Maven wrapper:

# On Windows PowerShell
.\mvnw.cmd spring-boot:run

How to Run

  1. First time setup: Install Maven (see above) or use Maven wrapper
  2. Build and run the app:
    # With Maven installed globally:
    mvn spring-boot:run
    
    # OR with Maven wrapper (no Maven installation needed):
    .\mvnw.cmd spring-boot:run
  3. Access the application:
    • Open your browser to http://localhost:8080
    • The app will redirect to the Customers page
    • Navigate between Customers, Products, and Orders using the links

Application Pages

  • Customers (/customers) - Add and view customers
  • Products (/products) - Add and view products with prices
  • Orders (/orders) - Create orders and add items to orders
  • H2 Console (/h2-console) - View database directly (JDBC URL: jdbc:h2:mem:ordersdb)

Database Access

The H2 in-memory database console is available at http://localhost:8080/h2-console

  • JDBC URL: jdbc:h2:mem:ordersdb
  • Username: sa
  • Password: (leave blank)

Stopping the Application

Press Ctrl+C in the terminal to stop the application.

Modernization Plan

This app will be used as a baseline for modernization to Azure (App Service, Azure SQL, REST APIs, Cosmos DB, etc.).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors