A social blogging platform where users can share their daily experiences, thoughts, and stories with the community.
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema setup
│ │ └── queries.ts # Database query functions
│ ├── routes/
│ │ ├── auth.ts # Authentication routes
│ │ ├── posts.ts # Post CRUD operations
│ │ ├── users.ts # User profile operations
│ │ └── static.ts # Static file serving
│ └── index.ts # Main Hono app entry point
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main React app
│ │ ├── PostCard.tsx # Post summary component
│ │ ├── PostDetail.tsx # Full post view
│ │ ├── UserProfile.tsx # User profile component
│ │ └── CreatePost.tsx # Post creation form
│ ├── index.html # Main HTML template
│ ├── index.tsx # Frontend entry point
│ └── style.css # Custom styles
├── shared/
│ └── types.ts # Shared TypeScript types
└── README.md
GET / - Main feed pageGET /api/posts - Get all posts (with pagination)GET /api/posts/:id - Get specific post with commentsPOST /api/posts - Create new postPOST /api/posts/:id/like - Like/unlike a postPOST /api/posts/:id/comments - Add comment to postGET /api/users/:id - Get user profilePOST /api/users - Create/update user profile