Skip to content

Subham7201/MyChatAPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chat App

Chat App is a real-time messaging application that allows users to communicate seamlessly. It's built with a robust stack including Express, MongoDB, Socket.io, JWT, and ReactJS. This application supports real-time communication, user authentication, and secure message storage.

Project Structure

  • api: Backend server using Express, MongoDB, and Socket.io.
  • client: Frontend built with ReactJS using Vite as the build tool.

Backend Setup

  1. Clone the repository:

    git clone https://github.com/Subham7201/MyChatAPP.git
  2. Navigate to the API directory:

    cd api
  3. Install dependencies:

    npm install
  4. Create a .env file in the api directory and configure:

    PORT=<your-port>
    MONGODB_URI=<your-mongodb-uri>
    JWT_SECRET=<your-secret-key>
  5. For the OpenAI api key, register on OpenAI and generate the secrete key there

    OpenAI_SECRET_KEY=<your-OpenAI-secret-key>
  6. Start the API server:

    node index

Frontend Setup

  1. Navigate to the client directory:

    cd client
  2. Install dependencies:

    npm install
  3. Start the Vite development server:

    npm run dev

Usage

  • Visit the frontend URL (usually http://localhost:5173) to access the Chat App.
  • Interact with the real-time messaging features and enjoy!

Feel free to explore and customize the application according to your needs!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published