Skip to content
Registry StackDocsDevelopment (unreleased)

Preview a business registration service

For the data publisher and operator

View as Markdown

If you are building a service on Base Registry Engine (BReg), try the business registration starter. You will run it on your machine, register a test business from a browser form, and see the Record that BReg returns.

Outcome
A local service that registers a test business and reads back its BReg Record.
Time
About 15 minutes, plus downloads
Level
Local evaluation only
Prerequisites
Registry Stack with the BReg component installedNode.js 24 with npmRunning DockerGit and a browser

Start in an empty working directory. Use the Registry Stack release selected in the docs version picker and install the BReg component from that release. Replace <version> with the release number, without the leading v. Copy the business registration starter from its source tag.

Terminal window
version='<version>'
rstack breg --version
git clone --depth 1 --branch "v${version}" https://github.com/registrystack/registry-stack.git registry-stack-preview-source
cp -R registry-stack-preview-source/products/platform/examples/service-previews/business-registration ./business-registration

Check that the reported tool version matches <version>. You now have a business-registration directory with a registry project, a browser page, and a registration function. If Git cannot find the tag, check the release number in the verified installer’s filename. If the starter is missing, choose a release that includes the preview.

Install the published client for the release you selected. npm saves that exact version in your copy of the starter. Run the remaining commands from the preview directory.

Terminal window
cd business-registration
npm install --save-exact "@registrystack/client@${version}"

If npm cannot find the version, check the package version against the Registry Stack release you installed. Use the same version for both.

Use synthetic data and trusted code on a trusted machine. The preview runs as a test registrar. Other processes and users on the same host can reach the loopback URL.

Check the development plan and start a local run.

Terminal window
rstack dev check .
rstack dev start . --ttl 30m

If the check fails, use the file and field named in its diagnostic. The first start may download the PostgreSQL image. If start fails, check that Docker is running and read the diagnostic. Keep the run ID and open the URL marked Application in the start report.

In the browser, enter Example Supply Cooperative for Business name and BR-TUTORIAL-001 for Registration number. Select Register business.

The Business registered confirmation shows the name, registration number and Record ID read back from BReg. Reload the page and use a fresh number to repeat the exercise in the same run.

Replace <run-id> with the ID from the start report. The --clean flag deletes the managed development data for this preview.

Terminal window
RUN='<run-id>'
rstack dev stop "$RUN" --clean

The stop report confirms the run stopped.

Generate clients for your own projects