First off, thank you for considering contributing to AMRouter! It's people like you that make AMRouter such a great tool.
If you've noticed a bug or have a feature request, make sure to check our Issues to see if someone else has already created a ticket. If not, go ahead and make one!
If this is something you think you can fix, then fork AMRouter and create a branch with a descriptive name.
A good branch name would be (where issue #325 is the ticket you're working on):
git checkout -b 325-add-new-providerMake sure you're using the right versions of Node.js. We recommend using nvm or fnm to manage your Node versions.
- Install dependencies:
npm install
- Start the development server (frontend & backend):
npm run dev
At this point, you're ready to make your changes! Feel free to ask for help; everyone is a beginner at first.
- Make sure your code is clean, readable, and well-commented where necessary.
- For UI changes, try to follow the existing design aesthetics.
- If you added a new feature or fixed a bug, make sure to update
frontend/public/CHANGELOG.md.
At this point, you should switch back to your master branch and make sure it's up to date with AMRouter's master branch:
git remote add upstream git@github.com:ahwanulm/amrouter.git
git checkout master
git pull upstream masterThen update your feature branch from your local copy of master, and push it!
git checkout 325-add-new-provider
git rebase master
git push --set-upstream origin 325-add-new-providerFinally, go to GitHub and make a Pull Request! We'll review your changes and merge them as soon as possible.
If a maintainer asks you to "rebase" your PR, they're saying that a lot of code has changed, and that you need to update your branch so it's easier to merge.
If you need any help, feel free to start a discussion in our GitHub Discussions tab. We're happy to help!