How yasaswitha18/blogspott works
BlogSpot is a full-stack blogging application. Users register and verify accounts, log in, publish posts, browse public posts, and access user profiles and their posts; account recovery and profile updates are also supported. The sampled backend shows Express routing, authentication logic, PostgreSQL access, and email delivery. The tree contains a built React frontend but no frontend source, so its internal behavior and specific API calls cannot be traced here.
Main entry points: postgresql.js PostgreSQL data access · index.js Express application · authRoutes.js Authentication routes · auth.js Authentication logic
Components 12
Application runtime
- Express application
index.js - React frontend build
build
Identity and email
- Authentication routes
routes/authRoutes.js - Authentication logic
utilities/auth.js - Verification and reset mailer
utilities/mailer.js - Gmail email service
Blogs and users
- Blog routes
routes/blogRoutes.js - User routes
routes/userRoutes.js
Persistence and formatting
- PostgreSQL data access
db/postgresql.js - PostgreSQL database
- Date formatting
utilities/dateTime.js
Other components
- Visitor
Connections 16
- Visitor → Express application: makes requests
- Express application → Authentication routes: mounts auth API
index.js - Express application → Blog routes: mounts blog API
index.js - Express application → User routes: mounts user API
index.js - Express application → React frontend build: serves static app
index.js - Express application → PostgreSQL data access: connects at startup
index.js - Authentication routes → Authentication logic: delegates account actions
routes/authRoutes.js - Authentication routes → PostgreSQL data access: reads and updates accounts
routes/authRoutes.js - Authentication routes → Verification and reset mailer: sends reset email
routes/authRoutes.js - Authentication logic → PostgreSQL data access: checks and changes accounts
utilities/auth.js - Authentication logic → Verification and reset mailer: sends verification email
utilities/auth.js - Verification and reset mailer → Gmail email service: sends messages
utilities/mailer.js - Blog routes → PostgreSQL data access: creates and fetches blogs
routes/blogRoutes.js - User routes → PostgreSQL data access: searches and fetches users
routes/userRoutes.js - PostgreSQL data access → PostgreSQL database: queries database
db/postgresql.js - PostgreSQL data access → Date formatting: formats blog dates
db/postgresql.js