Skip to content

Latest commit

 

History

History
109 lines (75 loc) · 1.91 KB

contributing.md

File metadata and controls

109 lines (75 loc) · 1.91 KB

😎 Contribute your Code to ProjectsHut

🧐 Follow these steps to Contribute

  • whenever you create a PR/issue please add a good title & description
  • add good commit messages
  • add screenshots if needed

Open in Gitpod

  1. Fork this repository

 Fork this repository

  1. Click on Go to file

Go to file

  1. Add following code to end of src/DB/projects.json
{
  "gh-username": "YOUR-GITHUB-USERNAME",
  "link": "LINK-TO-GITHUB-OR-DEMO",
  "title": "PROJECT-TITLE",
  "description": "PROJECT-DESCRIPTION",
  "tech": ["some tech 1", "some tech 2", "etc"]
}

If you want to run it locally then follow these

  1. Clone it to your computer
 git clone https://github.com/[your-username]/ProjectsHut.git
  1. Navigate to the project folder
cd ProjectsHut
  1. Rename .env.example to .env & add your GitHub Personal Access Token in .env file

  2. install dependencies

pnpm i
  1. run in local
pnpm dev
  1. Create a new branch using your GitHub Username
git checkout -b [name_of_your_new_branch]
  1. Make sure all the test cases pass
pnpm test
  1. Add your changes.
git add .
  1. Add your commits
git commit -m "Your Changes"

If you encounter this error while commits

husky - pre-commit hook exited with code 1(error)

use this command

pnpm format
  1. Set upstream command
git remote add upstream https://github.com/priyankarpal/ProjectsHut.git
  1. Push your commits
git push -u origin [Your-branch-name]
  1. Create a PR

  2. Wait for merge