Skip to content

Latest commit

 

History

History
74 lines (58 loc) · 1.92 KB

CONTRIBUTING.md

File metadata and controls

74 lines (58 loc) · 1.92 KB

Contribution Rules📚:

  • You are allowed to make more than one pull request. We'll surely merge the perfect ones :)
  • Do NOT remove other content.
  • Styling/code can be pretty, ugly or stupid, big or small as long as it works 😉
  • Make sure your create a separate branch before opening a PR.
  • Try to keep pull requests small to minimize merge conflicts

Getting Started 🤩🤗:

  • Fork the repository
  • Clone the repository.
git clone https://github.com/sristy17/MindDrive.git
  • Install the dependencies
npm install
  • Add an .env file in the root directory.
DB_USER=hacktoberfest
DB_PASSWORD=hacktoberfest
DB_APPNAME=dev-db

GEMINI_API_ENDPOINT=https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent
GEMINI_API_KEY=<gemini-api-key>

(Get your Gemini API key from here)

  • Start the application
npm run dev
  • Create a new branch for your contribution:
git checkout -b your-username
  • Make your changes and commit them:
git commit -m "Added a New Feature"
  • Push your changes to your fork:
git push origin your-username
  • Create a Pull Request to the main repository!
  • Get your PR merged 🚀

Avoid Conflicts {Syncing your fork}

An easy way to avoid conflicts is to add an 'upstream' for your git repo, as other PR's may be merged while you're working on your branch/fork.

git remote add upstream https://github.com/sristy17/MindDrive/

You can verify that the new remote has been added by typing

git remote -v

To pull any new changes from your parent repository simply run

git merge upstream/main

This will give you any eventual conflicts and allow you to easily solve them in your repo. It's a good idea to use it frequently in between your own commits to make sure that your repo is up to date with its parent.