Skip to main content

Data Submission via Git (Advanced)

This method is for technical users who are comfortable with Git and prefer to contribute directly to the repository.

Step-by-Step Guide:​

1. Fork the Repository​

First, you need to create your own copy (a "fork") of the AMDB repository.

  • Go to the AMDB GitHub Repository.
  • Click the Fork button in the top-right corner. This will create a copy under your own GitHub account.

2. Clone Your Fork​

Next, clone the forked repository to your local machine so you can make changes.

git clone https://github.com/YOUR_USERNAME/amdb.git
cd amdb

3. Create a New Branch​

It's best practice to create a new branch for your changes. This keeps your work organized and separate from the main branch.

git checkout -b add-my-provider-metadata

Give your branch a descriptive name, like add-my-awesome-provider.

4. Add or Edit Files​

  • Find the correct folder: Navigate to amdb/mainnet/providers or amdb/fuji/providers.
  • Create your JSON file: Create a .json file. For example, providers/my-provider.json.
  • Fill in the data: Carefully fill in all the required information. You can find the complete JSON structure and explanations for each field in the Metadata Schemas.

5. Commit and Push Your Changes​

Once you are done, save your changes, commit them with a clear message, and push the branch to your fork on GitHub.

git add .
git commit -m "feat: Add metadata for My Awesome Provider"
git push origin add-my-provider-metadata

6. Open a Pull Request​

  • Go to your forked repository on GitHub.
  • You will see a prompt to "Compare & pull request". Click it.
  • Make sure the base repository is coreappsio/amdb and the head repository is your fork and branch.
  • Add a clear title and description for your pull request, explaining the changes you made.
  • Click "Create pull request".

Our researchers will then review your submission, provide feedback if necessary, and merge it into the database.