Skip to content

A blog application featuring secure authentication, follow/unfollow functionality of topics and users, Image Upload/Retrieval feature using s3 Client, nested commenting and chat functionality.

Notifications You must be signed in to change notification settings

aarindey/Blogify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blogify - Secure User-Authenticated Blog Application

Blogify is a robust blog application featuring secure user authentication, user and tag following functionalities, and integration with AWS S3 for image posting, retrieval, and deletion. It is deployed on Cloudflare Workers with a PostgreSQL database utilizing connection pooling.

Features:

  1. User Authentication:

    • Secure authentication system for users to sign up, log in, and log out.
    • Passwords are securely hashed and stored.
  2. User-Authenticated Blogging:

    • Authenticated users can create, edit, and delete their blog posts.
    • Users have their own personalized dashboard for managing their posts.
  3. User and Tag Following:

    • Users can follow other users to receive updates on their posts.
    • Users can also follow specific tags to see posts related to those tags in their feed.
  4. AWS S3 Integration:

    • Integration with AWS S3 enables users to upload images for their blog posts.
    • Images are securely stored and can be retrieved and deleted as needed.
  5. Cloudflare Workers Deployment:

    • Deployed on Cloudflare Workers for scalability, reliability, and global distribution.
    • Utilizes Cloudflare's edge network for fast response times.
  6. PostgreSQL Database with Connection Pooling:

    • Utilizes PostgreSQL database for data storage.
    • Connection pooling optimizes database connections for improved performance.

Folder Structure:

  1. Frontend:

    • Contains the frontend codebase built with modern JavaScript frameworks like React.js or Vue.js.
    • Responsible for the user interface and interaction with the backend.
  2. Cloudflare Backend:

    • Houses the backend logic implemented using Cloudflare Workers.
    • Handles user authentication, blog post management, user interactions, and integration with AWS S3.
  3. Common:

    • Contains shared code and types used across both frontend and backend.
    • Includes Zod validation schemas for ensuring data integrity and consistency.
  4. Image Upload Service:

    • Manages the image upload functionality, integrating with AWS S3 for storing and retrieving images.
    • Ensures secure handling of image files and provides endpoints for frontend integration.

Setup Instructions:

  1. Clone the repository.
  2. Set up AWS S3 bucket for image storage and obtain necessary credentials.
  3. Configure Cloudflare Workers with your account and obtain API tokens.
  4. Set up a PostgreSQL database and configure connection pooling settings.
  5. Install dependencies for frontend and backend.
  6. Configure environment variables for AWS S3, Cloudflare Workers, and PostgreSQL database.
  7. Run the frontend and backend servers.
  8. Access the application through the provided URL.

Contributors:

aarindey

img_integration feed Blog Author Topic SignIn SignUp publish

About

A blog application featuring secure authentication, follow/unfollow functionality of topics and users, Image Upload/Retrieval feature using s3 Client, nested commenting and chat functionality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published