A blog-writing platform inspired by Medium, where users can sign up, log in, and create or read blogs. Users can also edit their own blogs.
- User Authentication: Users can sign up or log in to access the platform.
- Blog Creation: Authenticated users can write new blogs and save them to the database.
- Blog Reading: All blogs are accessible to any user for reading.
- Blog Editing: Users can edit blogs they have created.
- Responsive Design: The platform is optimized for desktop and mobile devices.
- Frontend: React with TypeScript
- Backend: Hono (Edge-compatible framework)
- Database: PostgreSQL
- Deployment: Cloudflare
-
Landing Page
- A welcoming page showcasing the platform’s features.
-
Sign-Up and Sign-In Pages
- Screens for user authentication.
-
Home Page
- A dashboard showing all available blogs.
-
Blog Reading Page
- A detailed view of an individual blog.
-
Blog Writing Page
- An interface for creating and editing blogs.
-
Clone the Repository
git clone https://github.com/SniperXyZ011/Medium-blog-project.git
-
Install Dependencies
npm install
-
Set Up the Database
- Configure your PostgreSQL database and update the environment variables in
.env
file:DATABASE_URL=your_database_url
- Configure your PostgreSQL database and update the environment variables in
-
Run the Development Server
npm run dev
-
Build and Deploy
- Use Cloudflare for deployment. Run the build command:
npm run build
- Deploy the built files to your Cloudflare Workers or Pages.
- Use Cloudflare for deployment. Run the build command:
- Add support for rich text editing in blog creation.
- Implement a search feature to find blogs by title or author.
- Introduce categories and tags for better blog organization.
- Allow users to leave comments on blogs.
Contributions are welcome! Feel free to fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or feedback, please contact:
- Your Name: [[email protected]]
- GitHub: [https://github.com/SniperXyZ011]