A real-time chat application built with the MERN stack.
- Real-time messaging
- User authentication
- Responsive design
- MongoDB: Database
- Express.js: Backend framework
- React.js: Frontend library
- Node.js: Backend runtime environment
-
Clone the repository:
git clone https://github.com/alys28/the-chat-app.git cd the-chat-app
-
Install dependencies:
-
For the server:
cd server npm install
-
For the client:
cd ../client npm install
-
-
Set up environment variables:
-
Create a
.env
file in theserver
directory with the following variables:MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret
-
-
Start the application:
-
In the
server
directory:npm start
-
In the
client
directory:npm start
The server will run on
http://localhost:5000
and the client onhttp://localhost:3000
. -
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License.