Skip to content

Commit af135b3

Browse files
authored
Merge pull request #161 from Riyad-Murad/staging
Staging
2 parents 7c1dcc6 + 57524e1 commit af135b3

39 files changed

+86
-56
lines changed

README.md

Lines changed: 62 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,27 @@
1717
### ER Diagram
1818

1919
<center>
20-
<img src="./readme/demo/ERD.png"/>
20+
<img src="./readme/demo/Diagrams/ERD.png"/>
2121
</center>
2222

2323
### Component Diagram
2424

2525
<center>
26-
<img src="./readme/demo/Component Diagram 2.0.png"/>
26+
<img src="./readme/demo/Diagrams/Component Diagram.png"/>
2727
</center>
2828

2929
### Flow Diagram
3030

3131
<center>
32-
<img src="./readme/demo/Flow Diagram.png"/>
32+
<img src="./readme/demo/Diagrams/Flow Diagram.png"/>
3333
</center>
3434

35+
### Project Box Design
36+
37+
| Power Box 1 | Power Box 2 | Power Box 3 |
38+
| --------------------------------------- | ------------------------------------- | ------------------------------------- |
39+
| ![PowerBox](./readme/demo/Project_Box/Power_Room_1.jpg) | ![PowerBox](./readme/demo/Project_Box/Power_Room_2.jpg) | ![PowerBox](./readme/demo/Project_Box/Power_Room_3.jpg) |
40+
3541
<br><br>
3642

3743
<!-- Project Highlights -->
@@ -50,11 +56,20 @@
5056
<!-- Demo -->
5157
<img src="./readme/title5.svg"/>
5258

53-
### User Screens (Mobile)
59+
### Client Screens (Web)
60+
61+
| Login screen | Register screen |
62+
| --------------------------------------- | ------------------------------------- |
63+
| ![Landing](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) |
64+
65+
66+
67+
### Provider Screens (Web)
68+
69+
| Login screen | Register screen |
70+
| --------------------------------------- | ------------------------------------- |
71+
| ![Landing](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) |
5472

55-
| Login screen | Register screen | Register screen |
56-
| --------------------------------------- | ------------------------------------- | ------------------------------------- |
57-
| ![Landing](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) |
5873

5974

6075
### Admin Screens (Web)
@@ -69,27 +84,59 @@
6984
<!-- Development & Testing -->
7085
<img src="./readme/title6.svg"/>
7186

72-
### Add Title Here
87+
### Code Test Cases
7388

74-
75-
| Services | Validation | Testing |
89+
| Test Case | Test Case | Test Case |
7690
| --------------------------------------- | ------------------------------------- | ------------------------------------- |
77-
| ![Landing](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) |
91+
| ![TestCase](./readme/demo/Testing/User_Test.png) | ![TestCase](./readme/demo/testing/Client_Dashboard_Test.png) | ![TestCase](./readme/demo/Testing/Provider_Overview_Test.png) |
92+
93+
### GitHub Testing Pull Request
7894

95+
| GitHub Testing Pipeline | GitHub Pull Request | Testing Output |
96+
| --------------------------------------- | ------------------------------------- | ------------------------------------- |
97+
| ![GitHubTestPipeline](./readme/demo/Testing/Laravel_Test_Staging.png) | ![GitHubPullRequest](./readme/demo/Testing/Pull%20Request%20Test%20Success.png) | ![LaravelTest](./readme/demo/Testing/php_artisan_test_success.png) |
7998

8099
<br><br>
81100

82-
<!-- Deployment -->
101+
<!-- AI-Power APP -->
83102
<img src="./readme/title7.svg"/>
84103

85-
### Add Title Here
104+
### OpenAI Intengration
86105

87106
- Description here.
88107

108+
| Prism Function Call | Prism Client Prompt | Prism Provider Prompt |
109+
| --------------------------------------- | ------------------------------------- | ------------------------------------- |
110+
| ![PrismCall](./readme/demo/AI/PrismFunctionCall.png) | ![ClientPrompt](./readme/demo/AI/PrismClientPrompt.png) | ![ProviderPrompt](./readme/demo/AI/PrismProviderPrompt.png) |
111+
112+
### Server Response with Database Indexing
113+
114+
- Provider user response time difference
115+
116+
| Postman API Before Indexing | Postman API After Indexing |
117+
| --------------------------------------- | ------------------------------------- |
118+
| ![BeforeIndex](./readme/demo/AI/Provider%20Report%20Before%20Indexing.png) | ![AfterIndex](./readme/demo/AI/Provider%20Report%20After%20Indexing.png) |
119+
120+
### Server Response with Database Indexing
121+
122+
- Client user response time difference
123+
124+
| Postman API Before Indexing | Postman API After Indexing |
125+
| --------------------------------------- | ------------------------------------- |
126+
| ![BeforeIndex](./readme/demo/AI/Client%20Report%20Before%20Indexing.png) | ![AfterIndex](./readme/demo/AI/Client%20Report%20After%20Indexing.png) |
127+
128+
<br><br>
129+
130+
<!-- Deployment -->
131+
<img src="./readme/title8.svg"/>
132+
133+
### EC2 Docker containers deployment
134+
135+
- You can check the full API documentation using this [link]().
89136

90-
| Postman API 1 | Postman API 2 | Postman API 3 |
137+
| Deployment Pipeline Sample | GitHub Deployment Pipeline Success | EC2 Instance docker deployed |
91138
| --------------------------------------- | ------------------------------------- | ------------------------------------- |
92-
| ![Landing](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) |
139+
| ![PipelineSample](./readme/demo/Deployment/Deployment%20Pipeline%201.png) | ![PipelineSuccess](./readme/demo/Deployment/GitHub_Deploy_Staging_Pipeline.png) | ![EC2Deployed](./readme/demo/Deployment/Node_Server_Docker_Deployed.png) |
93140

94141
<br><br>
95142

amp-laravel/app/Utils/ClientPrompt.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,6 @@ public static function clientBuildPromptFromMetrics($slaveId): string
4949
EOT;
5050

5151

52-
// $prompt = <<<EOT
53-
// You are an AI assistant that analyzes monthly energy usage metrics and generates structured, in-depth reports.
54-
55-
// Based on the following device readings, provide a **comprehensive and detailed** analysis including:
56-
57-
// - **Performance Summary** — A thorough overview of overall energy usage patterns, key events, and trends.
58-
// - **Voltage Insights** — Analyze stability, peaks, troughs, and possible causes of fluctuations.
59-
// - **Power Usage Insights** — Identify high-load events, consistent patterns, and anomalies.
60-
// - **Energy Usage Insights** — Discuss consumption levels, distribution over time, and periods of peak/low usage.
61-
// - **Actionable Recommendations** — Provide clear, technical, and practical suggestions (start each on a new line using a bullet point), and **do not mention device IDs**.
62-
63-
// Ensure each section provides detailed insights and explanations that a technical team or energy manager would find useful.
64-
65-
// Data:
66-
// $metricsText
67-
// EOT;
68-
6952
return $prompt;
7053
}
7154
}

amp-laravel/app/Utils/ProviderPrompt.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,6 @@ public static function providerBuildPromptFromMetrics(): string
4545
$metricsText
4646
EOT;
4747

48-
49-
// $prompt = <<<EOT
50-
// You are an AI assistant that analyzes monthly energy usage metrics collected from all devices and generates structured, high-level, and **detailed** reports.
51-
52-
// Based on the following aggregated readings from multiple devices, provide a **rich and insightful** analysis including:
53-
54-
// - **Performance Summary** — An extended overview highlighting cross-device trends, seasonal variations, and overall energy behaviors.
55-
// - **Voltage Insights** — Examine voltage range stability across all devices, flag irregularities, and suggest potential issues or improvements.
56-
// - **Power Usage Insights** — Detect usage intensity trends, major consumption periods, and possible inefficiencies.
57-
// - **Energy Usage Insights** — Highlight general usage profiles, identify spikes, valleys, and time-based variations across devices.
58-
// - **Actionable Recommendations** — List meaningful, technical, and scalable actions to optimize energy usage and monitoring (each starting on a new line with a bullet point), and **do not refer to specific device IDs**.
59-
60-
// Be as detailed as possible. This report is meant for energy analysts and system operators.
61-
62-
// Data:
63-
// $metricsText
64-
// EOT;
65-
6648
return $prompt;
6749
}
6850
}
230 KB
Loading
223 KB
Loading
581 KB
Loading
239 KB
Loading
592 KB
Loading
222 KB
Loading
224 KB
Loading

0 commit comments

Comments
 (0)