4.2.1 Fork your own country configuration repository
The first step towards configuring your own country configuration of OpenCRVS is to fork our existing country configuration based on our demonstration country Farajaland - Repo: opencrvs-countryconfig. the following steps help you change the cloned Farajaland repo into your own country configuration fork.
π 1. Pre-Fork Preparation
Before you fork, ensure the following:
β Use a GitHub Organisation
Forking must be done within a GitHub Organisation, not a personal account.
The Organisation must be on a GitHub Team or Enterprise plan (required for branch protection rules).
You must have Admin rights in that Organisation.
π§± Choose a Clear Repository Name
When you ran the bash setup.sh script in step 3.1.2 to install OpenCRVS locally, the country configuration repo for Farajaland was cloned into the same parent directory as opencrvs-core, as you are probably aware. The first thing that you want to do is to change the name of the cloned opencrvs-countryconfig directory to something like "opencrvs-<your country>".
Use this naming convention:
opencrvs-<your country name>
πΏ Plan Your Branching Strategy
We strongly recommend that you set up a Gitflow branching strategy on your repo to ensure that you can configure on feature branches, merge them into develop for testing and main or master for releases.
Branch
Purpose
main
Production-ready configuration
develop
QA or staging configuration
feature/*
Temporary configuration work
hotfix/*
Urgent production fixes
π₯ Define Governance
Add country team members, reviewers, and DevOps maintainers.