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.
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 on Twitter or to anyone from the Appwrite team on Discord. You can also submit an issue, and a maintainer can guide you!
Help us keep Appwrite open and inclusive. Please read and follow our Code of Conduct.
Branch naming convention is as following
TYPE-ISSUE_ID-DESCRIPTION
example:
doc-548-submit-a-pull-request-section-to-contribution-guide
When TYPE can be:
- feat - a new feature
- doc - documentation only changes
- cicd - changes related to CI/CD system
- fix - a bug fix
- refactor - code change that neither fixes a bug nor adds a feature
All PRs must include a commit message with the description of the changes made!
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:
git pull, before creating a new branch, pull the changes from upstream. Your master needs to be up to date.
$ git pull
- Create a new branch from
masterlike:doc-548-submit-a-pull-request-section-to-contribution-guide.
$ git checkout -b [name_of_your_new_branch]
-
Work - commit - repeat (make sure you're on the correct branch!)
-
Push changes to GitHub.
$ git push origin [name_of_your_new_branch]
- Submit your changes for review
If you go to your repository on GitHub, you'll see a
Compare & pull requestbutton. Click on that button. - Start a Pull Request
Now submit the pull request and click on
Create pull request. - Get a code review approval/reject.
- After approval, merge your PR.
- GitHub will automatically delete the branch after the merge is done. (they can still be restored).
.
βββ node # Runtime name
β βββ starter # Template name
β β βββ ... # Runtime & template specific files
β β βββ README.md # Template documentation
β βββ ... # More templates
βββ ... # More runtimes
βββ _README_TEMPLATE.md # README template to use for new templates
βββ ... # License and documentationAll 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.
Security and privacy are extremely important to Appwrite, developers, and users alike. Make sure to follow the best industry standards and practices.
Usage of dependencies is welcomed for purpose of simplifying template code. Please only use libraries that are well-known, and popular.
We would π you to contribute to Appwrite, but we also want to ensure Appwrite is loyal to its vision and mission statement π.
For us to find the right balance, please open an issue explaining your template idea before introducing a new pull request.
This will allow the Appwrite community to sufficiently discuss the new template value.
Once you have the green light, you can go ahead and create a PR from your issue.
We recommend first building your template in Node.js, as this is the most popular runtime in Appwrite and will allow you to get feedback before continuing to other runtimes.
Let's build a basic Node.js template that prints "Hello World" to the console.
-
Create a new folder in the
nodedirectory with the name of your template. In this case, we'll call ithello-world. -
Copy an existing
.gitignore, andpackage.jsonfile from thenode/startertemplate into the new folder. -
Update the
package.jsonfile, changing thenameanddescriptionfields to match your template. -
Create a new file at
node/hello-world/src/main.jsfile in the new folder. This is where the template logic will be reside.
Tip: Other runtimes have a similar structure, but may have additional files. Be sure to view and understand the starter template for the runtime you're working with.
Now that the template is setup, we can write the template logic.
Update the main.js file with your template logic.
Here's a basic function that prints "Hello, World!" to the console.
export default function ({log}) {
log("Hello, World!");
};If you're unsure about how to write your template logic, you can use the other templates as a guide, we recommend starting with the node/starter template.
Tip: All function templates should be easy to use and understand. If you find yourself writing a lot of code, consider breaking it up into multiple modules.
Now that the template logic is complete, we can write the template documentation.
Use the _README_TEMPLATE.md file as a guide for writing your template documentation. Be sure to fill out all the fields, and remove any fields that are not relevant to your template.
Don't worry about updating the README.md file in the root of the repository, this will be done automatically when the template is merged.
Pull requests are great, but there are many other ways you can help Appwrite.
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 on Twitter and/or email team@appwrite.io 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 repo on GitHub.
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!
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.
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.
Submitting documentation updates, enhancements, designs, or bug fixes, as well as spelling or grammar fixes is much appreciated.
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!