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.
- Introduction
- Preview
- Features
- Technologies
- Prerequisites
- Installation
- Configuration
- Usage
- Contributing
- License
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.
videomp4.mp4
- 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
- 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.
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.
-
Clone this repository to your local machine using:
git clone https://github.com/Yash-sudo-web/synkro.git
-
Navigate to the project directory:
cd synkro
-
Navigate to the server directory and Install the server-side dependencies:
cd server npm install
-
Navigate to the client directory and Install client-side dependencies:
cd .. cd client npm install
-
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=""
-
Start the client:
npm start
-
Open a new terminal window/tab and navigate to the server directory and start the server:
cd server npm start
-
Open your web browser and navigate to http://localhost:3000 to access the chat app.
Contributions are welcome! If you'd like to contribute to this project, please follow the usual GitHub fork and pull request workflow.
This project is licensed under the MIT License.