Skip to content

This Spring Boot application exposes a REST interface through which design and implement an online "Store" that should enable multiple sellers to set up shops that buyers can purchase

Notifications You must be signed in to change notification settings

omarmahamid/REST-Shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This Spring Boot application exposes a REST interface through which design and implement an online "Store" that should enable multiple sellers to set up shops that buyers can purchase

Build Instructions

This project requires Maven 3.8.1 and JDK 8 to build. Run the following:

go to the project path (where the pom.xml exist)

> mvn clean compile

Run Instructions

In order to get the online store service running simply do:

1.need to put the configuration of the oracle database under resources/db-config.properties directory for example:

plot

2.> mvn spring-boot:run or import from existing source in the intellij and configure the project

That's it, the online store is now running at https://localhost:8080.

Usage Instructions

need to create this relation database in sqlplus or sqldeveloper

ERD diagram for the tables

plot

adding initial .yml file in resources to deploy to kubernetes in the future.

API's

see how to use the api's from the docs directory

examples :

Registration API

Sample request to register:

{
  "type": "registerCustomer"
  "id" : "123",
  "name" : "Omar",
  "email" : "[email protected]"
}
https://localhost:8080/server/execute

High-Level Architecture

in the furure I will add cache DB, Rate Limiter, reading about kafka and will add it.

plot

Low-Level Architecture

all of the diagrams under docs/diagrams

the important diagrams

plot

here is the dataholder design

plot

sequence diagrams

plot

Response & Persistent in DB

example for queryCatalog result

plot

example for persistent data in DB

plot

Discount

discount given by this formula

plot

Author:

Omar Mahamid

About

This Spring Boot application exposes a REST interface through which design and implement an online "Store" that should enable multiple sellers to set up shops that buyers can purchase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages