- Fork the repository (Click the green Fork button in the top right of this page,
click your Profile Image)
- Clone the forked repository to your local machine.
https://github.com/<yourname>/oneliner.git
- change the present working directory
cd oneliner
- Open CMD in your current directory and run
npm i
Run locally
npm run start
- 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
- 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.gitPush the branch
git push
- Create a new pull request from your forked repository (Click the
New Pull Requestbutton located at the top of your repo)
-
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
-
Wait for your PR review and merge approval!
-
Star the repo.