How valaevdaniil565-ops/bottgai works
«Дело в системе» is a business-process services website whose main workflow turns a visitor’s completed contact form into a PostgreSQL lead record and a Telegram notification for the owner. The browser also provides diagnostic choices and lets visitors select a service before submitting. Internally, the Node.js server validates requests, initializes the database schema, persists leads, and records successful Telegram delivery. The sampled source shows these runtime relationships; the page markup and styling are represented by their paths, but were not excerpted.
Main entry points: server.js Lead API · index.html Services website · script.js Page interactions · schema.sql PostgreSQL leads
Components 12
Website experience
- Services website
public/index.html - Page styling
public/styles.css - Page interactions
public/script.js - Lead form
public/index.html - Submission feedback
public/script.js
Lead processing
- Lead API
server.js - Lead validation
server.js - Schema initialization
server.js
Storage and notifications
- Lead schema
schema.sql - PostgreSQL leads
schema.sql - Telegram Bot API
Other components
- Visitor
Connections 14
- Visitor → Services website: opens
README.md - Services website → Page styling: uses styles
- Services website → Page interactions: loads script
- Services website → Lead form: presents
- Page interactions → Lead form: handles input
public/script.js - Page interactions → Submission feedback: updates
public/script.js - Lead form → Lead API: submits to
- Lead API → Lead validation: validates
server.js - Lead API → PostgreSQL leads: inserts lead
server.js - Lead API → Telegram Bot API: sends notification
server.js - Lead API → PostgreSQL leads: records delivery
server.js - Lead API → Submission feedback: returns result
public/script.js - Schema initialization → Lead schema: reads and runs
server.js - Schema initialization → PostgreSQL leads: prepares tables
README.md