This project is a clone of the Medium blogging platform, which provides users with a platform to publish articles. Medium is known for its clean and intuitive user interface, making it easy for both writers and readers to navigate and interact with content.
- React.js
- Zod as the validation library, type inference for the frontend types
- TypeScript
- Cloudflare Workers
- Prisma (with connection pooling)
- JWT (JSON Web Tokens) for authentication
- PostgreSQL
- Clone the repository to your local machine.
- Navigate to the
frontend
directory and install frontend dependencies:
- cd frontend
- npm install
- Navigate to the
backend
directory and install backend dependencies:
- cd ../backend
- npm install
- Set up environment variables:
- Create a
.env
file in thebackend
directory and define the required environment variables including database connection details, JWT secret, etc.
- Start the backend server:
- npm run dev
- Start the frontend server:
- cd ../frontend
- npm run dev
- Access the application in your web browser.
Contributions are welcome to enhance the features or fix any bugs in the Blog Application like Medium project.