How bishti04062005/future_pe_02 works
AI UGC Ad Engine is a web app for account-based generation of short-form ad scripts, with refinement and saved campaign history. Users enter campaign details, receive a hook/bridge/close script, and can revisit or showcase results. The backend implements authentication, generation, refinement, history, and profile statistics in server.js. The HTML pages are named in the repository tree, but their source was not sampled; frontend-to-API links are therefore shown as unverified. The supplied excerpts do not show the database schema contents.
Main entry points: schema.prisma Application database · server.js Script generation · login.html Login · campaigns.html Campaign input
Components 14
Web experience
- Landing page
landing_page.html - Login
login.html - Campaign input
campaigns.html - Script showcase
showcase_output.html - History view
history.html - Profile view
profile.html
Application API
- Authentication routes
server.js - Script generation
server.js - Script refinement
server.js - History endpoint
server.js - Profile statistics
server.js
AI generation
- Google Gemini
Persistence
- Application database
prisma/schema.prisma
Other components
- Visitor
Connections 16
- Visitor → Landing page: opens
README.md - Visitor → Login: opens
README.md - Visitor → Campaign input: submits details
- Visitor → Script showcase: views output
- Visitor → History view: views history
- Visitor → Profile view: views profile
- Login → Authentication routes: authenticates
- Campaign input → Script generation: requests script
- Script generation → Google Gemini: generates script
server.js - Script generation → Application database: saves campaign and script
server.js - Script refinement → Google Gemini: rewrites script
server.js - Script refinement → Application database: saves version
server.js - History view → History endpoint: requests history
- History endpoint → Application database: reads campaigns
server.js - Profile view → Profile statistics: requests statistics
- Profile statistics → Application database: reads user counts
server.js