Unreleased documentation. These pages follow the main branch and can change before the next release. For supported guidance, use v0.51.0.
Preview a business registration service
For the data publisher and operator
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.
Scaffold the preview
Section titled “Scaffold the preview”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.
version='<version>'rstack breg --versiongit clone --depth 1 --branch "v${version}" https://github.com/registrystack/registry-stack.git registry-stack-preview-sourcecp -R registry-stack-preview-source/products/platform/examples/service-previews/business-registration ./business-registrationCheck 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 client
Section titled “Install the client”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.
cd business-registrationnpm 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.
Start the preview
Section titled “Start the preview”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.
rstack dev check .rstack dev start . --ttl 30mIf 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.
Register a test business
Section titled “Register a test business”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.
Stop the preview
Section titled “Stop the preview”Replace <run-id> with the ID from the start report. The --clean flag deletes the managed
development data for this preview.
RUN='<run-id>'rstack dev stop "$RUN" --cleanThe stop report confirms the run stopped.
Cookies on Registry Stack
We use optional cookies to understand how you use the main Registry Stack website and this documentation. If you contact us, we may link this activity to your enquiry. You can change your choice at any time. Read the privacy policy.
Your browser asks sites not to track you, so optional tracking stays off.
We could not use or save that choice. Optional tracking remains off.