When contributing to this repository, please first discuss the change you wish to make via an issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct; please follow it in all your interactions with the project.
- Fork this repository.
- Clone the forked repository.
- Create a new branch to add the feature.
git checkout -b <add_new_feature>
- Make your changes.
- Uncomment the localhost line and comment the nexus-chat line in the following lines of
client/realtime/src/app/Screen.js
before testing. It should look like the following:
const socket = io.connect("http://localhost:3001");
// const socket = io.connect("https://nexus-chat.glitch.me/");
- For testing, start the server first.
cd server/
npm start
- Then run the client in a new terminal.
cd client/realtime/
npm run dev
- Make sure you have installed all the dependencies using
npm install
. - Before committing changes, make sure to undo the commented lines in
client/realtime/src/app/Screen.js
. It should look like the following:
"use client";
import React from "react";
import io from "socket.io-client";
import { useEffect, useState } from "react";
//const socket = io.connect("http://localhost:3001");
const socket = io.connect("https://nexus-chat.glitch.me/");
const Screen = () => {
...
}
- Ensure all your changes are committed and push the branch to your fork.
- Create a pull request with a clear title and description of your changes.
- Your pull request will be reviewed by the project maintainers, and feedback or requests for changes may be provided.
- Once your changes are approved, they will be merged into the main repository. Congratulations on your contribution!
By contributing, you agree that your contributions will be licensed under the LICENSE of this project.
Thank you for your contribution!