Use Aidbox with React
Learn how to launch the sample app, add some sample data and query the data from a React app.
Last updated
Was this helpful?
Learn how to launch the sample app, add some sample data and query the data from a React app.
Last updated
Was this helpful?
This quickstart guide demonstrates how to launch a PHR sample app on the Aidbox platform. The sample app has been developed using the official JavaScript SDK, incorporating Aidbox's best practices.
The guide helps you to explore the following Aidbox features:
: execute and debug HTTP requests directly within Aidbox.
: manage fine-grained data access through the API.
: Efficiently load FHIR data into Aidbox.
: Streamline JS app development on Aidbox effortlessly.
Create your own Aidbox instance in
Configure Access Control within the Aidbox UI using the integrated REST console (APIs -> REST Console). Utilize the provided code snippets to create the Client and Access Policy for the sample app.
Populate your Aidbox instance with some synthetic data from Synthea using the Import endpoint and the handy REST console. Just run the following request to create the data:
Next up, let's configure the web app environment variables. Grab the .env.tpl file, make a copy called .env, and modify the following variables according to the configuration you set up in Step 1:
Congratulations! You now have a fully functional application that is ready to be customized according to your needs. Explore the personal health record app sample from a technical perspective and uncover the wonders of working with Aidbox through the SDK.
By default, Aidbox has a policy that locks down access to all data. You need to enable data sharing by adding Access Policies for Clients. Aidbox supports different ways to describe these policies, like JSON Schema, SQL, or Macho DSL. .
The is your go-to tool for loading FHIR data asynchronously into Aidbox. It effortlessly loads data from a public link specified in your HTTP request without performing any validation. Learn more.
Time to get your hands on the sample app! Simply clone it from GitHub at this link:
Start the app and navigate to using your favorite browser.
Explore the for advanced features.
Unlock additional capabilities of .
Dive into the built-in .
Play around with the to load FHIR data.