Below are the instructions for making changes to simple-chat. There are a few important guidelines we'd wish for you to follow. These will make it easier for you to contribute and for us to follow. Thank you for contributing!
If you've found a bug and don't have a solution or have a feature request, please create an issue.
Ensure the bug was not already reported by searching on GitHub under Issues.
If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a title and clear description and as much relevant information as possible and follow these steps if you already have a solution:
-
Fork the repository
-
Run
npm install && cd frontend && npm install
to install all required packages.
You can now change the things you want and test your changes.
❗ NOTE: Please choose meaningful commit messages.
- Build the frontend. There are two ways to do this:
- Call the following command (in main folder and not in
/frontend
) each time you want to test the app:$ npm run build
- Call the following command once. It'll watch the frontend files and automatically builds it when you make changes.
$ npm run build-dev
- Call the following command (in main folder and not in
- Launch the server with the following command where
<PORT>
is the port the app should run on (leavePORT=<PORT>
out if you want it to run on port 80):$ PORT=<PORT> npm start
- Push the changes to your forked repository.
- Create a pull request and choose a meaningful title and describe your changes in the description.
- Wait for a review and make changes according to the reviews comments.