Skip to content

Yash-sudo-web/synkro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synkro - Realtime Chatting Application

Welcome to Synkro! This is a real-time chat application that combines the power of the MERN (MongoDB, Express.js, React, Node.js) stack, along with TailwindCSS for styling, Passport.js for authentication, and Socket.io for real-time chatting.

Table of Contents

Introduction

This chat application allows users to create accounts, log in, and engage in real-time conversations with other users. The application uses the MERN stack, which is a popular choice for building full-stack web applications, along with TailwindCSS for easy and responsive styling. Passport.js provides user authentication, and Socket.io enables real-time communication between users.

Preview

videomp4.mp4

Features

  • User registration and authentication using Passport.js
  • Real-time chatting functionality using Socket.io
  • Responsive and visually appealing design with TailwindCSS
  • Sending and receiving text messages instantly
  • User-friendly interface for a seamless chatting experience

Technologies

  • MongoDB: NoSQL database for storing user data and chat messages.
  • Express.js: Web application framework for building the server.
  • React: Front-end library for building user interfaces.
  • Node.js: JavaScript runtime for server-side development.
  • Passport.js: Authentication middleware for Node.js.
  • Socket.io: Real-time communication library for web applications.
  • TailwindCSS: Utility-first CSS framework for styling.
  • Axios: Promise-based HTTP client for making requests.

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js and npm: Make sure you have Node.js and npm (Node Package Manager) installed on your system.

Installation

  1. Clone this repository to your local machine using:

    git clone https://github.com/Yash-sudo-web/synkro.git
    
  2. Navigate to the project directory:

    cd synkro
    
  3. Navigate to the server directory and Install the server-side dependencies:

    cd server
    npm install
    
  4. Navigate to the client directory and Install client-side dependencies:

    cd ..
    cd client
    npm install
    

Configuration

  1. Create a new .env file inside the server folder and add your environmental variables in the following order:

    GOOGLE_CLIENT_ID=""
    GOOGLE_CLIENT_SECRET=""
    FACEBOOK_APP_ID=""
    FACEBOOK_APP_SECRET=""
    DB=""
    COOKIE_KEY=""
    

Usage

  1. Start the client:

    npm start
    
  2. Open a new terminal window/tab and navigate to the server directory and start the server:

    cd server
    npm start
    
  3. Open your web browser and navigate to http://localhost:3000 to access the chat app.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow the usual GitHub fork and pull request workflow.

License

This project is licensed under the MIT License.