Quick Start
Before you start, install the required tools and start a local Kubernetes cluster, see Prerequisites.
Create a country configuration
npm create @opencrvs/countryconfig@latest <project-name>If you don't have Node.js installed, run the same command with Docker. Modify <project-name> before running:
docker run --rm -it \
-v "$PWD":/work -w /work \
--user "$(id -u):$(id -g)" -e HOME=/tmp \
node:22 npx --yes @opencrvs/create-countryconfig@latest <project-name>--user makes the created files belong to you instead of root.
This command creates two directories: <project-name>-countryconfig, a country configuration package with a minimal example configuration, and <project-name>-infrastructure, for deploying to servers. It asks for your organisation name and country code first.
Run local development environment
Go to your country configuration directory:
cd <path>/<project-name>-countryconfigStart the development environment:
tilt upOpen the Tilt UI at http://localhost:10350.
Wait until all resources in the 1.OpenCRVS group are green. The first tilt up downloads all OpenCRVS Core images, so it can take a long time, depending on your internet connection. Later starts are much faster. Follow the progress in each resource's logs.
Then run the data seed task from the Tilt UI:
Find the
2.Data-taskssectionRun the
data-seedorclean-&-seedresourceWait until the job completes
Log in
Open OpenCRVS at http://opencrvs.localhost and log in with a test user, for example username k.mweene and password test. If you are asked for an authentication code, use 000000.
For all test users, see Log in to OpenCRVS locally.
That's it! 🎉
Next steps
Read Working with Tilt to learn how to use the Tilt UI, reload your changes, reset data and access OpenCRVS services.
Last updated