Scribe Space is a clone of the popular Medium app, built with modern web technologies for a seamless blogging experience.
Check out the live version: Scribe Space
- Backend: Cloudflare Workers, Hono, PostgreSQL, Prisma
- Frontend: ReactJS, Tailwind-CSS
- Deployment: Vercel
-
Clone the repository:
git clone https://github.com/chiraggowda92187/Scribe.git cd Scribe/backend
-
Set up environment variables: Create a
.env
file in the backend directory and add your PostgreSQL credentials.Example
.env
file:DATABASE_URL=postgresql://username:password@localhost:5432/database
-
Run the development server:
npm run dev
-
Navigate to the frontend directory:
cd ../frontend
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the frontend directory if needed. -
Run the development server:
npm run dev
Once both the backend and frontend servers are running, you can access the application in your web browser at http://localhost:3000.
- Get all posts:
GET /api/posts
- Get a single post:
GET /api/posts/:id
- Create a post:
POST /api/posts
- Update a post:
PUT /api/posts/:id
- Delete a post:
DELETE /api/posts/:id
- Home: Displays a list of all posts.
- Post Detail: Displays a single post.
- Create/Edit Post: Form to create or edit a post.
Contributions are welcome! Please fork this repository and submit pull requests.