# noonejosh/easeslip architecture

> Architecture diagram of the GitHub repository noonejosh/easeslip, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/noonejosh/easeslip
- Repository: https://github.com/noonejosh/easeslip

## Overview

This repository is a small browser-based sales and inventory application with PHP account registration and login. The visible workflow is account creation or sign-in, followed by access to a dashboard; separate pages provide inventory entry and daily, weekly, and monthly sales views, including product-focused reports. The sampled inventory code edits tables in the browser, while the PHP handlers read and write the registration database. Report scripts shown populate labels or repeated sample product cards; no report-data backend is evident in the excerpts. Relationships for unsampled pages are omitted or marked unverified.

Main entry points: [`LOGIN/login.php`](https://github.com/noonejosh/easeslip/blob/main/LOGIN/login.php) (Sign in), [`SIGNUP/register.php`](https://github.com/noonejosh/easeslip/blob/main/SIGNUP/register.php) (Registration), [`LOGIN/dashboard.html`](https://github.com/noonejosh/easeslip/blob/main/LOGIN/dashboard.html) (Dashboard), [`RESETPASSWORD/reset-password.html`](https://github.com/noonejosh/easeslip/blob/main/RESETPASSWORD/reset-password.html) (Password reset page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_accounts["Accounts"]
  node_signup["Registration<br/>[register.php]"]
  node_login["Sign in<br/>[login.php]"]
  node_dashboard["Dashboard<br/>[dashboard.html]"]
  node_reset["Password reset page"]
end

subgraph group_operations["Sales and inventory"]
  node_inventory["Inventory entry"]
  node_daily["Daily sale page<br/>[daily-sale.html]"]
end

subgraph group_reports["Sales reports"]
  node_monthly_sale["Monthly sales<br/>[monthlySale.js]"]
  node_weekly_sale["Weekly sales<br/>[weeklySale.js]"]
  node_monthly_products["Monthly products"]
  node_weekly_products["Weekly products"]
end

subgraph group_database["Account storage"]
  node_account_db[("Registration database")]
end

node_user(("User"))

node_user -.->|"submits registration"| node_signup
node_signup -->|"inserts account"| node_account_db
node_user -.->|"submits credentials"| node_login
node_login -->|"queries account"| node_account_db
node_login -->|"redirects admin"| node_dashboard
node_user -.->|"opens page"| node_reset
node_user -.->|"uses inventory"| node_inventory
node_user -.->|"views sales"| node_daily
node_user -.->|"views report"| node_monthly_sale
node_user -.->|"views report"| node_weekly_sale
node_user -.->|"views products"| node_monthly_products
node_user -.->|"views products"| node_weekly_products

click node_signup "https://github.com/noonejosh/easeslip/blob/main/SIGNUP/register.php"
click node_login "https://github.com/noonejosh/easeslip/blob/main/LOGIN/login.php"
click node_dashboard "https://github.com/noonejosh/easeslip/blob/main/LOGIN/dashboard.html"
click node_reset "https://github.com/noonejosh/easeslip/blob/main/RESETPASSWORD/reset-password.html"
click node_inventory "https://github.com/noonejosh/easeslip/blob/main/INVENTORY/inventory-script.js"
click node_daily "https://github.com/noonejosh/easeslip/blob/main/DAILY%20SALE/daily-sale.html"
click node_monthly_sale "https://github.com/noonejosh/easeslip/blob/main/MonthlySale/monthlySale.js"
click node_weekly_sale "https://github.com/noonejosh/easeslip/blob/main/WeeklySale/weeklySale.js"
click node_monthly_products "https://github.com/noonejosh/easeslip/blob/main/MonthlyProductSale/monthlyProductSale.js"
click node_weekly_products "https://github.com/noonejosh/easeslip/blob/main/WeeklyProductSale/weeklyProductSale.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_signup,node_login,node_dashboard,node_reset,node_user toneBlue
class node_inventory,node_daily toneAmber
class node_monthly_sale,node_weekly_sale,node_monthly_products,node_weekly_products toneMint
class node_account_db toneRose
```

## Components

### Accounts

- [Registration](https://github.com/noonejosh/easeslip/blob/main/SIGNUP/register.php): `SIGNUP/register.php`
- [Sign in](https://github.com/noonejosh/easeslip/blob/main/LOGIN/login.php): `LOGIN/login.php`
- [Dashboard](https://github.com/noonejosh/easeslip/blob/main/LOGIN/dashboard.html): `LOGIN/dashboard.html`
- [Password reset page](https://github.com/noonejosh/easeslip/blob/main/RESETPASSWORD/reset-password.html): `RESETPASSWORD/reset-password.html`

### Sales and inventory

- [Inventory entry](https://github.com/noonejosh/easeslip/blob/main/INVENTORY/inventory-script.js): `INVENTORY/inventory-script.js`
- [Daily sale page](https://github.com/noonejosh/easeslip/blob/main/DAILY%20SALE/daily-sale.html): `DAILY SALE/daily-sale.html`

### Sales reports

- [Monthly sales](https://github.com/noonejosh/easeslip/blob/main/MonthlySale/monthlySale.js): `MonthlySale/monthlySale.js`
- [Weekly sales](https://github.com/noonejosh/easeslip/blob/main/WeeklySale/weeklySale.js): `WeeklySale/weeklySale.js`
- [Monthly products](https://github.com/noonejosh/easeslip/blob/main/MonthlyProductSale/monthlyProductSale.js): `MonthlyProductSale/monthlyProductSale.js`
- [Weekly products](https://github.com/noonejosh/easeslip/blob/main/WeeklyProductSale/weeklyProductSale.js): `WeeklyProductSale/weeklyProductSale.js`

### Account storage

- **Registration database**

### Other components

- **User**

## Connections

- User → Registration: submits registration
- Registration → Registration database: inserts account (evidence: `SIGNUP/register.php`)
- User → Sign in: submits credentials
- Sign in → Registration database: queries account (evidence: `LOGIN/login.php`)
- Sign in → Dashboard: redirects admin (evidence: `LOGIN/login.php`)
- User → Password reset page: opens page
- User → Inventory entry: uses inventory
- User → Daily sale page: views sales
- User → Monthly sales: views report
- User → Weekly sales: views report
- User → Monthly products: views products
- User → Weekly products: views products
