|
| 1 | +# Contributing |
| 2 | + |
| 3 | +We would ❤️ you to contribute to Appwrite and help make it better! We want contributing to Appwrite to be fun, enjoyable, and educational for anyone and everyone. All contributions are welcome, including issues, and new docs, as well as updates and tweaks, blog posts, workshops, and more. |
| 4 | + |
| 5 | +## How to Start? |
| 6 | + |
| 7 | +If you are worried or don’t know where to start, check out the next section that explains what kind of help we could use and where you can get involved. You can send your questions to [@appwrite](https://twitter.com/appwrite) on Twitter or to anyone from the [Appwrite team on Discord](https://appwrite.io/discord). You can also submit an issue, and a maintainer can guide you! |
| 8 | + |
| 9 | +## Code of Conduct |
| 10 | + |
| 11 | +Help us keep Appwrite open and inclusive. Please read and follow our [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md). |
| 12 | + |
| 13 | +## Submit a Pull Request 🚀 |
| 14 | + |
| 15 | +Branch naming convention is as following |
| 16 | + |
| 17 | +`TYPE-ISSUE_ID-DESCRIPTION` |
| 18 | + |
| 19 | +example: |
| 20 | + |
| 21 | +``` |
| 22 | +doc-548-submit-a-pull-request-section-to-contribution-guide |
| 23 | +``` |
| 24 | + |
| 25 | +When `TYPE` can be: |
| 26 | + |
| 27 | +- **feat** - a new feature |
| 28 | +- **doc** - documentation only changes |
| 29 | +- **cicd** - changes related to CI/CD system |
| 30 | +- **fix** - a bug fix |
| 31 | +- **refactor** - code change that neither fixes a bug nor adds a feature |
| 32 | + |
| 33 | +**All PRs must include a commit message with the description of the changes made!** |
| 34 | + |
| 35 | +For the initial start, fork the project and use git clone command to download the repository to your computer. A standard procedure for working on an issue would be to: |
| 36 | + |
| 37 | +1. `git pull`, before creating a new branch, pull the changes from upstream. Your master needs to be up to date. |
| 38 | + |
| 39 | +``` |
| 40 | +$ git pull |
| 41 | +``` |
| 42 | + |
| 43 | +2. Create a new branch from `master` like: `doc-548-submit-a-pull-request-section-to-contribution-guide`.<br/> |
| 44 | + |
| 45 | +``` |
| 46 | +$ git checkout -b [name_of_your_new_branch] |
| 47 | +``` |
| 48 | + |
| 49 | +3. Work - commit - repeat (make sure you're on the correct branch!) |
| 50 | + |
| 51 | +4. Push changes to GitHub. |
| 52 | + |
| 53 | +``` |
| 54 | +$ git push origin [name_of_your_new_branch] |
| 55 | +``` |
| 56 | + |
| 57 | +5. Submit your changes for review |
| 58 | + If you go to your repository on GitHub, you'll see a `Compare & pull request` button. Click on that button. |
| 59 | +6. Start a Pull Request |
| 60 | + Now submit the pull request and click on `Create pull request`. |
| 61 | +7. Get a code review approval/reject. |
| 62 | +8. After approval, merge your PR. |
| 63 | +9. GitHub will automatically delete the branch after the merge is done. (they can still be restored). |
| 64 | + |
| 65 | +### File Structure |
| 66 | + |
| 67 | +```bash |
| 68 | +. |
| 69 | +├── node # Runtime name |
| 70 | +│ ├── starter # Template name |
| 71 | +│ │ ├── ... # Runtime & template specific files |
| 72 | +│ │ └── README.md # Template documentation |
| 73 | +│ └── ... # More templates |
| 74 | +├── ... # More runtimes |
| 75 | +├── _README_TEMPLATE.md # README template to use for new templates |
| 76 | +└── ... # License and documentation |
| 77 | +``` |
| 78 | + |
| 79 | +## Coding Standards |
| 80 | + |
| 81 | +All code in templates should be formatted. Use formatter that is most common in runtime for which you are developing the template. If there isn't popular one in a runtime, you can use [Prettier](https://prettier.io/). |
| 82 | + |
| 83 | +## Security and Privacy |
| 84 | + |
| 85 | +Security and privacy are extremely important to Appwrite, developers, and users alike. Make sure to follow the best industry standards and practices. |
| 86 | + |
| 87 | +## Dependencies |
| 88 | + |
| 89 | +Usage of dependencies is welcomed for purpose of simplifying template code. Please only use libraries that are well-known, and popular. |
| 90 | + |
| 91 | +## Introducing New Templates |
| 92 | + |
| 93 | +We would 💖 you to contribute to Appwrite, but we also want to ensure Appwrite is loyal to its vision and mission statement 🙏. |
| 94 | + |
| 95 | +For us to find the right balance, please open an issue explaining your template idea before introducing a new pull request. |
| 96 | + |
| 97 | +This will allow the Appwrite community to sufficiently discuss the new template value. |
| 98 | + |
| 99 | +## Tutorials |
| 100 | + |
| 101 | +From time to time, our team will add tutorials that will help contributors find their way in the Appwrite source code. Below is a list of currently available tutorials: |
| 102 | + |
| 103 | +- [Adding Function Template](./docs/tutorials/add-function-template.md) |
| 104 | + |
| 105 | +## Other Ways to Help |
| 106 | + |
| 107 | +Pull requests are great, but there are many other ways you can help Appwrite. |
| 108 | + |
| 109 | +### Blogging & Speaking |
| 110 | + |
| 111 | +Blogging, speaking about, or creating tutorials about one of Appwrite’s many features are great ways to get the word out about Appwrite. Mention [@appwrite](https://twitter.com/appwrite) on Twitter and/or [email [email protected]](mailto:[email protected]) so we can give pointers and tips and help you spread the word by promoting your content on the different Appwrite communication channels. Please add your blog posts and videos of talks to our [Awesome Appwrite ](https://github.com/appwrite/awesome-appwrite) repo on GitHub. |
| 112 | + |
| 113 | +### Presenting at Meetups |
| 114 | + |
| 115 | +We encourage our contributors to present at meetups and conferences about your Appwrite projects. Your unique challenges and successes in building things with Appwrite can provide great speaking material. We’d love to review your talk abstract/CFP, so get in touch with us if you’d like some help! |
| 116 | + |
| 117 | +### Sending Feedbacks and Reporting Bugs |
| 118 | + |
| 119 | +Sending feedback is a great way for us to understand your different use cases of Appwrite better. If you had any issues, bugs, or want to share your experience, feel free to do so on our GitHub issues page or at our [Discord channel](https://discord.gg/GSeTUeA). |
| 120 | + |
| 121 | +### Submitting New Ideas |
| 122 | + |
| 123 | +If you think Appwrite could use a new feature, please open an issue on our GitHub repository, stating as much information as you have about your new idea and its implications. We would also use this issue to gather more information, get more feedback from the community, and have a proper discussion about the new feature. |
| 124 | + |
| 125 | +### Improving Documentation |
| 126 | + |
| 127 | +Submitting documentation updates, enhancements, designs, or bug fixes, as well as spelling or grammar fixes is much appreciated. |
| 128 | + |
| 129 | +### Helping Someone |
| 130 | + |
| 131 | +Consider searching for Appwrite on Discord, GitHub, or StackOverflow to help someone who needs help. You can also help by teaching others how to contribute to Appwrite's repo! |
0 commit comments