How jaisriv788/blog works
This is a blog-publishing application: users sign up or sign in, browse published posts, create posts, and manage their own posts. The React app routes those workflows and calls a deployed API; backend user routes validate credentials and use Prisma for persistence. The blog route implementation is a core module, but it was not sampled, so its internal behavior and storage relationships cannot be verified. Edges reflect only shown calls, routing, and documented endpoint requests.
Main entry points: App.tsx App routing · Blogs.tsx All blogs · MyBlogs.tsx My blogs · main.tsx React bootstrap
Components 18
Web application
- React bootstrap
frontend/src/main.tsx - App routing
frontend/src/App.tsx - Navigation bar
frontend/src/components/ui/Navbar.tsx - Session expiry notice
frontend/src/components/ui/SessionEnd.tsx
User identity
Blog workflows
- All blogs
frontend/src/components/routes/Blogs.tsx - Blog display
frontend/src/components/ui/Blog.tsx - Blog loading
frontend/src/components/ui/AllBlogsSkeleton.tsx - My blogs
frontend/src/components/routes/MyBlogs.tsx - Blog management
frontend/src/components/ui/MyBlog.tsx - My blog loading
frontend/src/components/ui/MyBlogSkeleton.tsx - Create blog
frontend/src/components/routes/CreateBlog.tsx
Backend API
- User endpoints
backend/routes/user.ts - Blog endpoints
backend/routes/blog.ts
Persistence
- User records
Other components
- Visitor
- Deployed API
Connections 22
- Visitor → React bootstrap: opens
- React bootstrap → App routing: renders
frontend/src/main.tsx - App routing → Sign up: routes
frontend/src/App.tsx - App routing → Sign in: routes
frontend/src/App.tsx - App routing → All blogs: routes
frontend/src/App.tsx - App routing → My blogs: routes
frontend/src/App.tsx - App routing → Create blog: routes
frontend/src/App.tsx - App routing → Navigation bar: renders
frontend/src/App.tsx - App routing → Session expiry notice: renders
frontend/src/App.tsx - Sign up → Deployed API: submits signup
frontend/src/components/routes/Signup.tsx - Sign in → Deployed API: submits signin
frontend/src/components/routes/Signin.tsx - User endpoints → User records: creates and reads
backend/routes/user.ts - All blogs → Deployed API: fetches posts
frontend/src/components/routes/Blogs.tsx - All blogs → Blog display: renders
frontend/src/components/routes/Blogs.tsx - All blogs → Blog loading: shows loading
frontend/src/components/routes/Blogs.tsx - My blogs → Deployed API: fetches posts
frontend/src/components/routes/MyBlogs.tsx - My blogs → Blog management: renders
frontend/src/components/routes/MyBlogs.tsx - My blogs → My blog loading: shows loading
frontend/src/components/routes/MyBlogs.tsx - Blog management → Deployed API: updates and deletes
frontend/src/components/ui/MyBlog.tsx - Create blog → Deployed API: submits post
frontend/src/components/routes/CreateBlog.tsx - Deployed API → User endpoints: handles identity
- Deployed API → Blog endpoints: handles blog requests