👍🎉 First off, thanks for taking the time to contribute! 🎉👍
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owner of this repository before making a change.
To install the project you need to have node
and npm
-
Fork the project, clone your fork:
# Clone your fork git clone https://github.com/<your-username>/mern.git # Navigate to the newly cloned directory cd mern
-
Your environment needs to be running
node
version = 16.20.2 andnpm
version = 8.19.2 -
from the root of the project:
npm install
to install all server side dependencies -
from the client folder of the project:
npm install
to install all client side dependencies- make sure you have latest
npm
version
- make sure you have latest
-
from the root of the project:
npm start
ornpm run dev
to the server. -
from the client folder of the project:
npm run start
to the run the react app.
Tip: Keep your
v2
branch pointing at the original repository and make pull requests from branches on your fork. To do this, run:git remote add upstream https://github.com/KygoSkyrus/mern.git git fetch upstream git branch --set-upstream-to=upstream/v2 v2This will add the original repository as a "remote" called "upstream," then fetch the git information from that remote, then set your local
v2
branch to use the upstream v2 branch whenever you rungit pull
. Then you can make all of your pull request branches based on thisv2
branch. Whenever you want to update your version ofv2
, do a regulargit pull
.
Please go through existing issues and pull requests to check if somebody else is already working on it.