Skip to content

Latest commit

 

History

History
98 lines (87 loc) · 3.23 KB

File metadata and controls

98 lines (87 loc) · 3.23 KB

MyCoffee API

Template for a Spring Boot project including Spring REST, HATEOAS, JPA, etc. Additional details: HELP.md

Open Issues CI/CD CucumberReports: UdL-EPS-SoftArch Deployment status

Vision

For ... who want to ... the project ... is an ... that allows ... Unlike other ...

Features per Stakeholder

Customer Business Admin
Register Apply Accept Application
Login Login Reject Application
Logout Logout
List Businesses Add Product
List Business Inventory Upload Inventory
Select product Download Inventory
Deselect product Manage Stock
Checkout
(when and payment method)
List Orders (by when)
List orders Cancel
Process
Ready/Message
Picked/Paid
Set Loyalty Card
Cancel Loyalty Card

Entities Model

classDiagram
class Admin { }
class Customer {
    name
    phoneNumber
}
class Basket { }
class Order {
    created
    serveWhen
    paymentMethod
    status: [received, cancelled, in process, ready, picked]
}
class Business {
    id: Long
    name: String
    address: String
    status: [applied, accepted, rejected]
}
class Loyalty {
    startDate
}
class Inventory { }
class Category {
    name
}
class Product {
    id
    name
    description
    price
    stock
    brand
    size
    barcode
    tax
    isAvailable
    promotions
    discount
    kcal
    carbs
    proteins
    fats
    ingredients
    allergens
    rating
}

Customer "1" -- "1" Basket
Customer "1" -- "*" Order
Basket "*" -- "*" Product
Order "*" -- "*" Product
Business "1" -- "*" Loyalty
Business "1" -- "*" Inventory
Loyalty "*" -- "1" Product
Inventory "1" -- "*" Product
Product "*" -- "1" Category

Loading