Skip to content

Presenting MediumBlog – the ultimate platform for telling engaging stories. This GitHub repository contains a blog app featuring an elegant user interface, smooth sign-up/sign-in process, and quick server integration via Cloudflare. Be a part of our journey in creating and sharing your stories with ease!

Notifications You must be signed in to change notification settings

aman3255/Medium_Blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Medium Blog

This project is a blog website similar to Medium, built with React for the frontend and Cloudflare Workers for the backend. It utilizes TypeScript, Prisma, PostgreSQL, and JWT for authentication.

Table of Contents


Technologies Used

Frontend (To be added later):

  • React
  • TypeScript
  • Tailwind CSS (for styling)
  • React Icons
  • React Toastify (for notifications)
  • Zod (for validation)

Backend:

  • Cloudflare Workers
  • TypeScript
  • Prisma (ORM with connection pooling)
  • PostgreSQL (as the database)
  • JWT (for authentication)

Features

  • User authentication using JWT
  • CRUD operations for blog posts
  • Real-time updates powered by Cloudflare Workers
  • Backend type validation using Zod

Getting Started

Prerequisites

Ensure you have the following installed:

  • Node.js (v14 or higher)
  • PostgreSQL database

Installation

  1. Clone the repository:

    git clone https://github.com/Piyush5784/Medium-blog.git
  2. Navigate to the project directory:

    cd medium
  3. Install dependencies (Frontend to be added later):

    cd backend
    npm install  # or yarn install
  4. Set up environment variables: Create a .env file in the root directory and add the following variables:

    DATABASE_URL=your_postgres_database_url
    JWT_SECRET=your_jwt_secret

Running Locally

Start the development server:

npm run dev

Now, you’re ready to build and explore the Medium Blog project! 🚀

About

Presenting MediumBlog – the ultimate platform for telling engaging stories. This GitHub repository contains a blog app featuring an elegant user interface, smooth sign-up/sign-in process, and quick server integration via Cloudflare. Be a part of our journey in creating and sharing your stories with ease!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published