Contributors are expected to write code for the routes mentioned in routes/main.routes.js
file.
Starter code is already provided in controllers/main.controllers.js
file.
- Successful response ->
res.status(statuscode).json({success: true, data:your response goes here})
- Unsuccessful response ->
res.status(statuscode).json({success: false, error: err.message | custom error message })
- statuscodes
200 -> successful query
400 -> Invalid id
404 -> ID not found
500 -> Internal server error <catch block error>
if you find any new issue or any bug in the code itself then,
- Click on new issue present on the top right side of the issue tab of this repository.
- Add title and discription of issue that you want to raise and ask the maintainer to assign the issue.
- Click on Submit New Issue option. Now you have raised a new issue, wait for the maintainer to assign it and you are good to go.
if you want to work on an existing issue that has not been assigned then,
- Go in the issue tab of this repository.
- Choose the issue that you want to work on.
- Click on that issue and in the comments ask the maintainer to assign you that particular issue.
- Lastly click on comment and wait for the issue to be assigned by the maintainer.
Once the issue is assigned
- Fork this repository (Click the Fork button in the top right of this page, click your Profile Image)
- Clone your fork down to your local machine
git clone https://github.com/your-username/project-mgmt-api-Hactoberfest-2022.git
- Create a branch
git checkout -b branch-name
- Make your changes (choose from any task below)
- Fix the issue
- Commit and push
git add .
git commit -m 'Commit message'
git push origin branch-name
- Create a new pull request from your forked repository (Click the
New Pull Request
button located at the top of your repo) - Wait for your PR review and merge approval!
- ⭐ repository if you had fun!