Skip to content

DurgaVaraPrasadBandi/FBClone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini Facebook Clone

A Facebook-style social media platform built using PHP, MySQL, Node.js, Express, MongoDB, HTML, CSS, and JavaScript. This project allows users to sign up, log in, create posts, like, and comment, with a responsive interface.


Features

  • User Authentication: Secure login and session management using PHP and MySQL.
  • Posts Management: Create, like, and comment on posts using Node.js + Express backend with MongoDB.
  • Responsive UI: Clean and responsive design using HTML, CSS, and vanilla JavaScript.
  • Content Tabs: Separate tabs for Home, Images, and Videos for better user experience.
  • Session Handling: Persistent sessions to keep users logged in securely.

Technologies Used

  • Frontend: HTML, CSS, JavaScript
  • Backend: PHP, Node.js, Express
  • Database: MySQL (for authentication), MongoDB (for posts, likes, comments)

Project Structure

Mini-Facebook-Clone/ ├── node_modules/ # Node.js dependencies

   ├── modles/ # Database Schemas for Posts, Users

   ├── routes/ # Express routes for posts, likes, comments

   ├── uploads/ # Uploaded media files

   ├── server.js # Node.js backend entry point

   ├── package.json # Node.js dependencies and scripts

   └── .env # Environment variables

├── home.php # Homepage after login

├── login.php # Login page

├── signup.php # Signup page

└── logout.php # Logout page


Installation

  1. Clone the repository:

    git clone https://github.com/your-username/Mini-Facebook-Clone.git
    cd Mini-Facebook-Clone
  2. Set up PHP & MySQL for authentication:

    • Create a MySQL database and import the provided SQL schema (if available).
    • Update database credentials in the PHP files (login.php, signup.php).
  3. Set up Node.js backend:

    npm install
  • create a .env file in the root:
    MONGO_URI=your_mongodb_connection_string
    PORT=5000
  • Start the Node.js server:
    node server.js
  1. Run the project:
  • Open home.php or login.php in your browser via a local server like XAMPP/WAMP for PHP.
  • Ensure Node.js server is running for handling posts, likes, and comments.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors