A fully functional blogging platform built using React, Cloudflare Workers, Prisma, PostgreSQL, TypeScript, and Zod. This platform allows users to create, update, and retrieve blog posts while ensuring data validation, authentication, and seamless routing.
- User authentication using JWT tokens.
- Secure blog post creation, update, and retrieval.
- Zod validation for type-safe inputs.
- Prisma ORM integration for database management.
- Deployed with Cloudflare Workers for scalable serverless functions.
- Blog posts stored and managed using PostgreSQL.
- Frontend: React, TypeScript, React Router
- Backend: Cloudflare Workers, Node.js
- Database: PostgreSQL, Prisma
- Validation: Zod
- Authentication: JWT
- Deployment: Cloudflare Workers
To set up the project locally, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/blogging-platform.git cd blogging-platform - Install dependencies:
npm install
- Set up environment variables in a .env file:
DATABASE_URL=your-postgresql-url JWT_SECRET=your-jwt-secret
- Run the application:
npm start
- User Authentication: JWT tokens are used for user sign-up and sign-in, ensuring secure access to user-specific resources.
- Blogging Functionality: Users can create, edit, and delete blog posts, with data being validated using Zod.
- Cloudflare Workers: Serverless functions handle backend logic efficiently, reducing server overhead.
- [email protected]
- Twitter - @Sambit0011 (https://x.com/Sambit0011)
- Linkedin - https://www.linkedin.com/in/sambit-mohanty-179974222/