How sipemnyaka/peterelectrical works
Peter Electrical is a business website for presenting electrical services and collecting quote requests. The main workflow runs from the customer-facing quote form through the browser script and Azure HTTP Function to Cosmos DB, then through a change-feed notification function to Resend and the business. README capabilities such as site sections, Maps, WhatsApp, and SEO are represented, but their implementation details were not sampled; those integration links are therefore indicative and optional.
Main entry points: index.html Business site · quoteNotification.js Change-feed trigger · script.js Form interaction · quote.js Quote endpoint
Components 18
Business website
- Business site
index.html - Services and testimonials
index.html - Quote form
index.html - Form interaction
js/script.js - Responsive styling
css/styles.css
Quote API
- Quote endpoint
api/src/functions/quote.js - Function registration
api/src/functions/index.js - Quote container
- Health endpoint
api/src/functions/health.js
Notifications
- Change-feed trigger
api/src/functions/quoteNotification.js - Notification status
api/src/functions/quoteNotification.js - Resend email API
Contact and discovery
- WhatsApp and Maps
index.html - SEO metadata
index.html - Crawling metadata
robots.txt - XML sitemap
sitemap.xml
Other components
- Potential customer
- Peter Electrical
Connections 15
- Potential customer → Business site: browses
- Business site → Services and testimonials: presents
- Potential customer → Quote form: submits
- Quote form → Form interaction: handled by
- Form interaction → Quote endpoint: POSTs request
- Quote endpoint → Quote container: writes quote
- Quote container → Change-feed trigger: change feed
- Change-feed trigger → Quote container: reads and updates
- Change-feed trigger → Notification status: sets status
- Change-feed trigger → Resend email API: sends email
- Resend email API → Peter Electrical: delivers notification
- Potential customer → WhatsApp and Maps: uses
- Business site → SEO metadata: provides metadata
- Crawling metadata → Business site: guides crawling
- XML sitemap → Business site: lists pages