Welcome to the Universal Chat App! This project is a full-featured chat application with both backend and frontend components.
To get started with the Universal Chat App, follow the instructions below.
-
Clone the repository:
git clone https://github.com/Nun-Thee-Knee/chat.git cd chat
-
Setup the Backend:
cd Backend npm install npm run dev
Add .env which includes
(i). MONGODB_URL=(Your connection string with MongoDb)
(ii).CLIENT_URL=(Your server on which Frontend or React is running) -
Setup the Frontend:
Open a new terminal window/tab, then:
cd chat npm install npm run start
Replace https://chat-ew8z.onrender.com from ./components/Demo.js, ./components/Demo.js, ./components/ChatPlace.js and ./context/UserState.js with the link to the local server where your backend is running. (Mostly http://localhost:5000)
- Landing Page: On the landing page, you will see two options:
- Get Started: This will redirect you to the chat page if you are logged in. If not, it will redirect you to an authentication form.
- Demo: Use this option to check how the chat functionality works without needing to log in.
For development purposes, ensure that your MongoDB server is running at mongodb://localhost:27017/
.
Contributions are welcome! Please open an issue or submit a pull request for any changes.
If you have any questions or need further assistance, please open an issue in the GitHub repository.
Enjoy chatting!