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.
- api: Backend server using Express, MongoDB, and Socket.io.
- client: Frontend built with ReactJS using Vite as the build tool.
-
Clone the repository:
git clone https://github.com/Subham7201/MyChatAPP.git
-
Navigate to the API directory:
cd api -
Install dependencies:
npm install
-
Create a
.envfile in theapidirectory and configure:PORT=<your-port> MONGODB_URI=<your-mongodb-uri> JWT_SECRET=<your-secret-key>
-
For the OpenAI
apikey, register on OpenAI and generate the secrete key thereOpenAI_SECRET_KEY=<your-OpenAI-secret-key>
-
Start the API server:
node index
-
Navigate to the
clientdirectory:cd client -
Install dependencies:
npm install
-
Start the Vite development server:
npm run dev
- 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!