How mahiavi/jerney works
Jerney is a React blog platform backed by an Express API and PostgreSQL. A reader browses the feed, opens a post, and can comment, edit, or delete; a writer creates a post and is taken to its detail page. Frontend pages call a shared API client, while Express routes own the post and comment operations and query the database. The README also describes a dark glassmorphism UI. Edges reflect shown calls or explicitly documented HTTP architecture; unsampled UI components are retained where their use is shown.
Main entry points: App.jsx App routes · api.js API client · PostDetail.jsx Post detail · index.js Express server
Components 16
React experience
- App routes
frontend/src/App.jsx - Post feed
frontend/src/pages/Home.jsx - Post card
frontend/src/components/PostCard.jsx - Create post
frontend/src/pages/CreatePost.jsx - Post detail
frontend/src/pages/PostDetail.jsx - Edit post
frontend/src/pages/EditPost.jsx - Comment section
frontend/src/components/CommentSection.jsx - Confirm modal
frontend/src/components/ConfirmModal.jsx - Navigation
frontend/src/components/Navbar.jsx - API client
frontend/src/api.js
Backend API
- Express server
backend/src/index.js - Post routes
backend/src/routes/posts.js - Comment routes
backend/src/routes/comments.js - DB connection
backend/src/db.js
PostgreSQL data
- Posts and comments
Other components
- Reader / writer
Connections 21
- Reader / writer → App routes: uses
- App routes → Post feed: routes
frontend/src/App.jsx - App routes → Post detail: routes
frontend/src/App.jsx - App routes → Create post: routes
frontend/src/App.jsx - App routes → Edit post: routes
frontend/src/App.jsx - App routes → Navigation: renders
frontend/src/App.jsx - Post feed → API client: fetches posts
frontend/src/pages/Home.jsx - Post feed → Post card: renders
frontend/src/pages/Home.jsx - Create post → API client: creates post
frontend/src/pages/CreatePost.jsx - Edit post → API client: loads and updates
frontend/src/pages/EditPost.jsx - Post detail → API client: loads and deletes
frontend/src/pages/PostDetail.jsx - Post detail → Comment section: renders
frontend/src/pages/PostDetail.jsx - Post detail → Confirm modal: renders
frontend/src/pages/PostDetail.jsx - Comment section → API client: creates and deletes
frontend/src/components/CommentSection.jsx - API client → Express server: HTTP requests
frontend/src/api.js - Express server → Post routes: mounts
backend/src/index.js - Express server → Comment routes: mounts
backend/src/index.js - Express server → DB connection: initializes
backend/src/index.js - Post routes → DB connection: queries
backend/src/routes/posts.js - Comment routes → DB connection: queries
backend/src/routes/comments.js - DB connection → Posts and comments: connects
backend/src/db.js