Skip to content

Latest commit

 

History

History
92 lines (57 loc) · 1.5 KB

File metadata and controls

92 lines (57 loc) · 1.5 KB

let's contribute

Contribute to this repository

  1. Fork the repository (Click the green Fork button in the top right of this page,

click your Profile Image)

  1. Clone the forked repository to your local machine.
https://github.com/<yourname>/oneliner.git
  1. change the present working directory
cd oneliner
  1. Open CMD in your current directory and run
npm i 

Run locally

npm run start

  1. Add new one liner :

Go to src > assets > DB.json & add your code

{
	"question": "< Title >",
	"answer": "< Desc about the title >",
	"category": "< linux || python || Java || webdev || ethical>"
},
  • answer should not exceed 10-12 words
  1. Make changes in the project. Add, Commit and push the project using following commands:

Add all files

git add .

Commit the changes

git commit -m "Write Your commit Message"

Create a new branch

git branch -M <your-name>

Set upstream command to create a PR

git remote add upstream https://github.com/asPerReqirements/oneliner.git

Push the branch

git push
  1. Create a new pull request from your forked repository (Click the New Pull Request button located at the top of your repo)

How to Create a PR

  1. After you push the changes you need to create a pull request and name the issue and mention the issue number,

    eg: added oneliner #issuenumber

  2. Wait for your PR review and merge approval!

  3. Star the repo.