This is a chat application built with Node.js, Express, ChatEngine.io, React, HTML, CSS, and JavaScript. It allows users to create accounts, join chat rooms, and communicate with other users in real-time.
To install the application, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/chat-app.git
- Install dependencies:
npm install
- Create a ChatEngine.io account and obtain your credentials.
- Create a
.env
file with your ChatEngine.io credentials:
-REACT_APP_CHAT_ENGINE_PROJECT_ID=
-REACT_APP_CHAT_ENGINE_PRIVATE_KEY= - Start the server:
npm start
To run the application, you will need to open two separate terminal windows:
-
In the first terminal window, navigate to the backend directory of the project and run the following command:
npm run start -
In the second terminal window, navigate to the frontend directory of the project and run the following command:
npm run dev
This will start your frontend development server and open your web application in a browser window. You can now use your web application by interacting with it through your browser window.
To use the application, open it in your web browser at http://localhost:3001
. You will be prompted to create an account or log in if you already have one. Once you are logged in, you can join chat rooms and communicate with other users in real-time.
If you would like to contribute to the application, please follow these steps:
- Fork the repository
- Create a new branch:
git checkout -b feature/my-new-feature
- Make changes and commit them:
git commit -am 'Add some feature'
- Push to the branch:
git push origin feature/my-new-feature
- Create a new pull request
This application is licensed under the MIT License. See the LICENSE file for more information.