Make sure you have nodejs and yarn installed by running the following command:
node -v
yarn -v
If you do not have node installed, install nodejs from here
If your node version is less than v14, you would need to update it.
If you do not have yarn install, please run
npm i -g yarn
in your terminal to install it
After installing nodejs install yarn if you don't have it then install the project's dependencies:
yarn install
Run the backend development server using either of the following commands:
npm run server
# or
yarn run server
Server will be running @ http://127.0.0.1:4000
Install dependencies in the root folder,
cd into the server-client folder, and install the dependencies,
cd into the client folder, and install the client's dependencies
yarn install
Run the frontend development server using either of the following commands from the root folder:
npm run client:dev
# or
yarn run client:dev
Open http://localhost:9000 with your browser to see the result.
make sure you are in the root folder
Run the development server using either of the following commands:
npm run dev
# or
yarn run dev
Open http://localhost:3000 with your browser to see the frontend result and your server would be listening on http://localhost:4000.
-
Fork the central repository, i.e the team's general repository.
-
After forking it will appear in your personal profile, copy the url and open your favorite code editor, add the forked repo to your local machine using the git command - git clone (url of repo you copied) on your terminal.
-
git clone clones a repository into a newly created directory, creates remote-tracking branches for each branch in the cloned repository
-
the upstream is named origin by default
-
-
Create a new branch for the task you are assigned to with a descriptive branch name, using the git command: git checkout -b (branch name)
-
After implementation, use the git command -: git add . or git add -A or git add (the file name) to effect changes you've made to the branch
-
Commit your changes with a descriptive commit message, the commit message should give an idea of the feature you worked on, use the git command: git commit -m "commit message"
-
Push changes to your forked repo with the new branch you created using the git command: git push origin your-branch-name
-
Create a pull request to the develop branch of the central repository from your forked repo on github. The button is on the GUI
- Pro tip: It is possible that commits may have been merged to central repository, to avoid conflicts, fetch and merge from the central repo on the GUI, then you can update your local machine by using the command: git pull