How enduranceops/login-estatico-orm works
This is a small static-web login application backed by an Express server and PostgreSQL through Prisma. The main workflow is: a user submits the login form, browser-side validation runs, the browser posts credentials to the login endpoint, and the server looks up the user and returns a result; successful login navigates to the dashboard. The README also identifies simple validation and ORM-backed PostgreSQL access. Source excerpts show the key request and lookup; the schema contents and page markup were not sampled.
Main entry points: app.js Login validation · server.js Login endpoint · index.html Login page · dashboard.html Dashboard
Components 9
Web interface
- Login page
public/index.html - Login validation
public/app.js - Dashboard
public/dashboard.html - Web styling
public/style.css
Login server
- Login endpoint
server.js
Persistence
- Prisma lookup
server.js - PostgreSQL
- Prisma schema
prisma/schema.prisma
Other components
- User
Connections 7
- User → Login page: submits credentials
- Login page → Login validation: loads behavior
public/app.js - Login validation → Login endpoint: posts credentials
public/app.js - Login endpoint → Prisma lookup: looks up user
server.js - Prisma lookup → PostgreSQL: queries via ORM
README.md - Login validation → Dashboard: redirects on success
public/app.js - Login endpoint → Login page: serves static files
server.js