GitHub allows you to contribute to our Community Base by adding new communities using git, and later submitting them in a "pull request", making the entire process from submission to approval transparent and inclusive.
- A GitHub account.
- Git setup (for simplicity, we recommend GitHub Desktop).
Below is a step-by-step guide to get started.
- Fork the repo: https://github.com/beastdao/pom_frontend/fork
- Clone the forked repository into a local directory (a folder on your computer) using GitHub Desktop and following 3 steps:
- open Github Desktop app
- Go to File > Clone Repository
- Select your fork of pom_frontend from the list and click Clone to download it to your computer.
- Open project in a code editor of your choice (e.g., Pulsar).
Now you’re ready to add your community!
- Create a new community file using the template
- Navigate to
../src/community_base/communities/
- Duplicate
template.json
and rename it with your community’s name, using dashes if the name has multiple words (e.g.,your-community-name.json
).
- Fill out the community template with a relevant community info
- Open the new JSON file you created and populate it with your community’s information
- For inspiration, review existing files in the same folder.
- Update the community base index
- Open
../src/community_base/community_base_index.ts
- Import your new community JSON file at the end of the existing import statements:
import your-community-name from './communities/your-community-name.json';
- Add your community to the end of list of exported communities:
export const communities: Community[] = [beastdao, eth, pom, devcon, ethereum, your-community-name];
.
- Commit your changes
- Go to GitHub Desktop, you should see your changes listed
- Write a commit message
ADD YOUR-COMMUNITY-NAME COMMUNITY
and click Commit to main - Push your changes by clicking Push origin.
- Submit your Community
- Go to the Github page of your pom_frontend fork (similar to github/julkr/pom-frontend , but with your name)
- Hit Pull requests -> New pull Request -> Create pull request
- Type a title for your pull request in a following format
ADD YOUR-COMMUNITY-NAME COMMUNITY
- Click Create Pull Request and wait for review and approval from Beast team.
You can use this pull request as an example : ADD ETHEREUM COMMUNITY
As your pull request will be accepted and merged, your community will be listed on https://app.pom.cards/communitybase
Congrats, you made it!