A Medium-like blog application built with a modern tech stack to provide a seamless writing and reading experience.
- CRUD Operations: Create, read, and update blog posts fully implemented.
- Delete Route: The backend delete route is implemented with authorization to ensure only authorized users can delete posts. The frontend for this functionality is yet to be implemented.
- User Authentication: Secure login and registration.
- Validation: Both frontend and backend validations are handled with Zod to maintain data consistency and user experience.
- Responsive Design: Optimized UI for all screen sizes.
- Frontend: React
- Backend: Hono (with Prisma)
- Database: PostgreSQL
- Hosting: Cloudflare Workers
- Validation: Zod (both frontend and backend)
- Clone the repository:
git clone https://github.com/yourusername/medium-clone.git cd medium-clone
- Install dependencies:
npm install
- Set up your
.env
file with database and Cloudflare credentials. - Run the development server:
npm start
- Authentication:
/api/auth
- Articles:
/api/articles
- Comments:
/api/comments
- Delete:
/api/articles/:id/delete
(Authorization required)
Both frontend and backend validations are handled with Zod to ensure data integrity and a smooth user experience.
(Add screenshots of your UI here)
- Add likes and comments
- Implement social media sharing
- SEO optimization
Feel free to submit issues or pull requests!