Skip to content

Commit 0f1e424

Browse files
committed
final may be!!!
1 parent 5624b0a commit 0f1e424

55 files changed

Lines changed: 3862 additions & 5 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Jenkinsfile

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ pipeline {
33

44
environment {
55
DOCKER_IMAGE = 'logitrack-backend'
6+
FRONTEND_IMAGE = 'logitrack-frontend'
67
DOCKER_TAG = "v${env.BUILD_NUMBER}"
78
}
89

@@ -32,14 +33,22 @@ pipeline {
3233
}
3334
}
3435

35-
stage('Build Docker Image') {
36+
stage('Build Backend Docker Image') {
3637
steps {
3738
dir('backend') {
3839
sh "docker build -t ${DOCKER_IMAGE}:${DOCKER_TAG} -t ${DOCKER_IMAGE}:latest ."
3940
}
4041
}
4142
}
4243

44+
stage('Build Frontend Docker Image') {
45+
steps {
46+
dir('frontend') {
47+
sh "docker build -t ${FRONTEND_IMAGE}:${DOCKER_TAG} -t ${FRONTEND_IMAGE}:latest ."
48+
}
49+
}
50+
}
51+
4352
// Optional: Push to a registry like Docker Hub
4453
// stage('Push Docker Image') {
4554
// steps {
@@ -55,8 +64,8 @@ pipeline {
5564
post {
5665
always {
5766
echo 'Pipeline execution completed.'
58-
// Clean up old images if needed
59-
// sh "docker rmi ${DOCKER_IMAGE}:${DOCKER_TAG} || true"
67+
sh "docker rmi ${DOCKER_IMAGE}:${DOCKER_TAG} || true"
68+
sh "docker rmi ${FRONTEND_IMAGE}:${DOCKER_TAG} || true"
6069
}
6170
success {
6271
echo 'Build was successful! Proceeding to deployment phase.'

backend/server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const app = express();
1010
const PORT = process.env.PORT || 5000;
1111

1212
// Middleware
13-
app.use(cors());
13+
app.use(cors({
14+
origin: ['https://logitrack-frontend-1ng4.onrender.com', 'http://localhost:5500', 'http://127.0.0.1:5500'],
15+
credentials: true
16+
}));
1417
app.use(express.json());
1518
app.use(express.static(path.join(__dirname, '../frontend'))); // Serve static files
1619

frontend/js/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const API_BASE_URL = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1'
22
? 'http://localhost:5000'
3-
: 'https://logitrack-ppne.onrender.com';
3+
: 'https://logitrack-ppnc.onrender.com';
44

55
const API_URL = `${API_BASE_URL}/api`;
66

graphify-out/.graphify_labels.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"0": "Community 0",
3+
"1": "Community 1",
4+
"2": "Community 2",
5+
"3": "Community 3",
6+
"4": "Community 4",
7+
"5": "Community 5",
8+
"6": "Community 6",
9+
"7": "Community 7",
10+
"8": "Community 8",
11+
"9": "Community 9",
12+
"10": "Community 10",
13+
"11": "Community 11",
14+
"12": "Community 12",
15+
"13": "Community 13",
16+
"14": "Community 14",
17+
"15": "Community 15",
18+
"16": "Community 16",
19+
"17": "Community 17",
20+
"18": "Community 18",
21+
"19": "Community 19",
22+
"20": "Community 20",
23+
"21": "Community 21",
24+
"22": "Community 22",
25+
"23": "Community 23",
26+
"24": "Community 24",
27+
"25": "Community 25",
28+
"26": "Community 26",
29+
"27": "Community 27",
30+
"28": "Community 28",
31+
"29": "Community 29",
32+
"30": "Community 30",
33+
"31": "Community 31"
34+
}

graphify-out/.graphify_root

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/home/batman/Documents/GitHub/LogiTrack

graphify-out/GRAPH_REPORT.md

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# Graph Report - LogiTrack (2026-05-21)
2+
3+
## Corpus Check
4+
- 35 files · ~347,883 words
5+
- Verdict: corpus is large enough that graph structure adds value.
6+
7+
## Summary
8+
- 171 nodes · 146 edges · 32 communities (30 shown, 2 thin omitted)
9+
- Extraction: 99% EXTRACTED · 1% INFERRED · 0% AMBIGUOUS · INFERRED: 1 edges (avg confidence: 0.8)
10+
- Token cost: 0 input · 0 output
11+
12+
## Graph Freshness
13+
- Built from commit: `5624b0a4`
14+
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
15+
- Run `graphify update .` after code changes (no API cost).
16+
17+
## Community Hubs (Navigation)
18+
- [[_COMMUNITY_Community 0|Community 0]]
19+
- [[_COMMUNITY_Community 1|Community 1]]
20+
- [[_COMMUNITY_Community 2|Community 2]]
21+
- [[_COMMUNITY_Community 4|Community 4]]
22+
- [[_COMMUNITY_Community 6|Community 6]]
23+
- [[_COMMUNITY_Community 8|Community 8]]
24+
- [[_COMMUNITY_Community 21|Community 21]]
25+
- [[_COMMUNITY_Community 22|Community 22]]
26+
- [[_COMMUNITY_Community 23|Community 23]]
27+
- [[_COMMUNITY_Community 24|Community 24]]
28+
- [[_COMMUNITY_Community 25|Community 25]]
29+
- [[_COMMUNITY_Community 28|Community 28]]
30+
- [[_COMMUNITY_Community 29|Community 29]]
31+
- [[_COMMUNITY_Community 30|Community 30]]
32+
- [[_COMMUNITY_Community 31|Community 31]]
33+
34+
## God Nodes (most connected - your core abstractions)
35+
1. `CI/CD Setup for LogiTrack` - 7 edges
36+
2. `LogiTrack - Logistics Tracking System` - 7 edges
37+
3. `LogiStore E-Commerce Integration` - 6 edges
38+
4. `scripts` - 4 edges
39+
5. `Option 1: GitHub Actions (Recommended)` - 4 edges
40+
6. `Option 2: Deploy to PaaS (Zero CI Config)` - 4 edges
41+
7. `Key Features` - 4 edges
42+
8. `Quick Start (local)` - 4 edges
43+
9. `repository` - 3 edges
44+
10. `repository` - 3 edges
45+
46+
## Surprising Connections (you probably didn't know these)
47+
- `test()` --calls--> `checkPasswordStrength()` [INFERRED]
48+
backend/test_track.js → frontend/js/app.js
49+
50+
## Communities (32 total, 2 thin omitted)
51+
52+
### Community 1 - "Community 1"
53+
Cohesion: 0.83
54+
Nodes (3): displayShipments(), loadShipments(), searchShipments()
55+
56+
### Community 2 - "Community 2"
57+
Cohesion: 0.29
58+
Nodes (7): bcrypt, firstNames, getRandomItem(), lastNames, mongoose, seedAgents(), User
59+
60+
### Community 4 - "Community 4"
61+
Cohesion: 0.20
62+
Nodes (6): mongoose, Product, products, Product, mongoose, ProductSchema
63+
64+
### Community 6 - "Community 6"
65+
Cohesion: 0.17
66+
Nodes (7): jwt, User, jwt, User, bcrypt, mongoose, UserSchema
67+
68+
### Community 8 - "Community 8"
69+
Cohesion: 0.10
70+
Nodes (20): author, bugs, url, description, devDependencies, nodemon, homepage, keywords (+12 more)
71+
72+
### Community 21 - "Community 21"
73+
Cohesion: 0.11
74+
Nodes (18): author, bugs, url, description, devDependencies, nodemon, homepage, keywords (+10 more)
75+
76+
### Community 22 - "Community 22"
77+
Cohesion: 0.25
78+
Nodes (6): formattedResponse, formattedShipments, query, Shipment, mongoose, ShipmentSchema
79+
80+
### Community 23 - "Community 23"
81+
Cohesion: 0.14
82+
Nodes (13): Adding Tests (Recommended), CI/CD Setup for LogiTrack, code:bash (fly launch # auto-generates fly.toml), code:bash (# On your server:), code:bash (cd backend), code:json ("scripts": {), Fly.io, Option 2: Deploy to PaaS (Zero CI Config) (+5 more)
83+
84+
### Community 24 - "Community 24"
85+
Cohesion: 0.15
86+
Nodes (12): code:bash (git clone https://github.com/LOVENISH87/LogiTrack.git), code:block2 (MONGO_URI=<your_mongodb_connection_string>), code:bash (npm install), code:bash (docker build -t logitrack-backend ./backend), code:bash (node seedProducts.js), Docker (backend), Features, LogiTrack - Logistics Tracking System (+4 more)
87+
88+
### Community 25 - "Community 25"
89+
Cohesion: 0.18
90+
Nodes (10): 1. LogiStore Shop (`shop.html`), 2. Backend Architecture, 3. Data Management, code:bash (npm start), Files Created/Modified, How to Test, Key Features, LogiStore E-Commerce Integration (+2 more)
91+
92+
### Community 28 - "Community 28"
93+
Cohesion: 0.22
94+
Nodes (9): dependencies, bcryptjs, cors, dotenv, express, jsonwebtoken, mongodb, mongoose (+1 more)
95+
96+
### Community 29 - "Community 29"
97+
Cohesion: 0.25
98+
Nodes (8): dependencies, bcryptjs, cors, dotenv, express, jsonwebtoken, mongoose, ogl
99+
100+
### Community 30 - "Community 30"
101+
Cohesion: 0.33
102+
Nodes (6): code:bash (mkdir -p .github/workflows), code:yaml (name: CI/CD Pipeline), Option 1: GitHub Actions (Recommended), Setup Steps, What It Does, Workflow Template
103+
104+
## Knowledge Gaps
105+
- **96 isolated node(s):** `disabledMcpjsonServers`, `name`, `version`, `description`, `main` (+91 more)
106+
These have ≤1 connection - possible missing edges or undocumented components.
107+
- **2 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
108+
109+
## Suggested Questions
110+
_Questions this graph is uniquely positioned to answer:_
111+
112+
- **Why does `dependencies` connect `Community 28` to `Community 8`?**
113+
_High betweenness centrality (0.014) - this node is a cross-community bridge._
114+
- **Why does `dependencies` connect `Community 29` to `Community 21`?**
115+
_High betweenness centrality (0.011) - this node is a cross-community bridge._
116+
- **Why does `CI/CD Setup for LogiTrack` connect `Community 23` to `Community 30`?**
117+
_High betweenness centrality (0.010) - this node is a cross-community bridge._
118+
- **What connects `disabledMcpjsonServers`, `name`, `version` to the rest of the system?**
119+
_96 weakly-connected nodes found - possible documentation gaps or missing edges._
120+
- **Should `Community 8` be split into smaller, more focused modules?**
121+
_Cohesion score 0.09523809523809523 - nodes in this community are weakly interconnected._
122+
- **Should `Community 21` be split into smaller, more focused modules?**
123+
_Cohesion score 0.10526315789473684 - nodes in this community are weakly interconnected._
124+
- **Should `Community 23` be split into smaller, more focused modules?**
125+
_Cohesion score 0.14285714285714285 - nodes in this community are weakly interconnected._
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"nodes": [{"id": "home_batman_documents_github_logitrack_backend_seedproducts_js", "label": "seedProducts.js", "file_type": "code", "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L1"}, {"id": "backend_seedproducts_mongoose", "label": "mongoose", "file_type": "code", "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L1"}, {"id": "backend_seedproducts_product", "label": "Product", "file_type": "code", "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L2"}, {"id": "backend_seedproducts_products", "label": "products", "file_type": "code", "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L7"}, {"id": "backend_seedproducts_seedproducts", "label": "seedProducts()", "file_type": "code", "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L80"}], "edges": [{"source": "home_batman_documents_github_logitrack_backend_seedproducts_js", "target": "mongoose", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L1", "weight": 1.0}, {"source": "home_batman_documents_github_logitrack_backend_seedproducts_js", "target": "backend_seedproducts_mongoose", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L1", "weight": 1.0}, {"source": "home_batman_documents_github_logitrack_backend_seedproducts_js", "target": "home_batman_documents_github_logitrack_backend_models_product_js", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L2", "weight": 1.0}, {"source": "home_batman_documents_github_logitrack_backend_seedproducts_js", "target": "backend_seedproducts_product", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L2", "weight": 1.0}, {"source": "home_batman_documents_github_logitrack_backend_seedproducts_js", "target": "backend_seedproducts_products", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L7", "weight": 1.0}, {"source": "home_batman_documents_github_logitrack_backend_seedproducts_js", "target": "backend_seedproducts_seedproducts", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L80", "weight": 1.0}], "raw_calls": [{"caller_nid": "backend_seedproducts_seedproducts", "callee": "connect", "is_member_call": true, "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L82"}, {"caller_nid": "backend_seedproducts_seedproducts", "callee": "log", "is_member_call": true, "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L83"}, {"caller_nid": "backend_seedproducts_seedproducts", "callee": "deleteMany", "is_member_call": true, "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L85"}, {"caller_nid": "backend_seedproducts_seedproducts", "callee": "log", "is_member_call": true, "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L86"}, {"caller_nid": "backend_seedproducts_seedproducts", "callee": "insertMany", "is_member_call": true, "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L88"}, {"caller_nid": "backend_seedproducts_seedproducts", "callee": "log", "is_member_call": true, "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L89"}, {"caller_nid": "backend_seedproducts_seedproducts", "callee": "disconnect", "is_member_call": true, "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L91"}, {"caller_nid": "backend_seedproducts_seedproducts", "callee": "log", "is_member_call": true, "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L92"}, {"caller_nid": "backend_seedproducts_seedproducts", "callee": "error", "is_member_call": true, "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L94"}, {"caller_nid": "backend_seedproducts_seedproducts", "callee": "exit", "is_member_call": true, "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/seedProducts.js", "source_location": "L95"}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"nodes": [{"id": "home_batman_documents_github_logitrack_claude_settings_local_json", "label": "settings.local.json", "file_type": "code", "source_file": "/home/batman/Documents/GitHub/LogiTrack/.claude/settings.local.json", "source_location": "L1"}, {"id": "claude_settings_local_disabledmcpjsonservers", "label": "disabledMcpjsonServers", "file_type": "code", "source_file": "/home/batman/Documents/GitHub/LogiTrack/.claude/settings.local.json", "source_location": "L2"}], "edges": [{"source": "home_batman_documents_github_logitrack_claude_settings_local_json", "target": "claude_settings_local_disabledmcpjsonservers", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/home/batman/Documents/GitHub/LogiTrack/.claude/settings.local.json", "source_location": "L2", "weight": 1.0}, {"source": "claude_settings_local_disabledmcpjsonservers", "target": "ref_supabase", "relation": "extends", "confidence": "EXTRACTED", "source_file": "/home/batman/Documents/GitHub/LogiTrack/.claude/settings.local.json", "source_location": "L2", "weight": 1.0, "context": "import"}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"nodes": [{"id": "home_batman_documents_github_logitrack_backend_controllers_productcontroller_js", "label": "productController.js", "file_type": "code", "source_file": "/home/batman/Documents/GitHub/LogiTrack/backend/controllers/productController.js", "source_location": "L1"}], "edges": [], "raw_calls": []}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"nodes": [{"id": "home_batman_documents_github_logitrack_frontend_js_shared_data_js", "label": "shared-data.js", "file_type": "code", "source_file": "/home/batman/Documents/GitHub/LogiTrack/frontend/js/shared-data.js", "source_location": "L1"}], "edges": [], "raw_calls": []}

0 commit comments

Comments
 (0)