MonoMart

MonoMart is a modern, single-vendor e-commerce backend application built with Spring Boot 3, PostgreSQL, and JWT authentication. It provides a complete RESTful API for managing products, categories, shopping carts, orders, and user authentication with role-based access control.

preview

🌟 Features

Core Functionality

Technical Highlights

πŸ—οΈ Architecture

β”œβ”€β”€ controller/          # REST API endpoints
β”œβ”€β”€ service/            # Business logic layer
β”œβ”€β”€ repository/         # Data access layer
β”œβ”€β”€ domain/            # Entity models
β”œβ”€β”€ dto/               # Data transfer objects
β”œβ”€β”€ security/          # JWT and authentication
β”œβ”€β”€ config/            # Application configuration
└── exception/         # Global exception handling

🌐 API Documentation

Swagger UI

Once the application is running, access the interactive API documentation:

API Endpoints Overview

Authentication

Products

Categories

Shopping Cart

Orders

Sample API Usage

Register a new user

curl -X POST http://localhost:8080/api/v1/auth/signup \
  -H "Content-Type: application/json" \
  -d '{
    "username": "john",
    "email": "john@example.com",
    "password": "Passw0rd!"
  }'

Login and get JWT token

curl -X POST http://localhost:8080/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{
    "usernameOrEmail": "john",
    "password": "Passw0rd!"
  }'

Access protected endpoints

curl -X GET http://localhost:8080/api/v1/cart \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

MonoMart - Building the future of e-commerce, one API at a time! πŸš€

  View on GitHub