This is an example of a booking widget built on top of the Healthie API. The widget lets a client select an appointment type, find an available appointment slot, provide personal info, and book the appointment.
First, make sure you have a Healthie API key and account. If you don't have one, you can go to https://gethealthie.com/api to request access
Second, clone the repository to your computer, and install dependencies.
git clone https://github.com/healthie/healthie_sample_booking_widget.git
cd healthie_widget
npm install
Third, adjust config options in App.tsx. They can either be set directly in the code, or passed in via URL params.
To run the project locally, just do
npm start
By default, the root URL points to Healthie's sandbox API servers. If you want to run this widget against your production instance, make sure to adjust src/config/rootUrl.ts
When you are ready to deploy, you can run
npm build
This will generate a hostable build that can be hosted with any static website host. We really like Netlify and S3/Cloudfront ourselves.
This booking widget is meant to be a simmple example and does not support all different Healthie account settings. It has simplified error handling (via Javascript alerts).
- Our website: https://gethealthie.com/
- For public issues and bugs please use the GitHub Issues Page.
- For enquiries and private issues reach out to us at [email protected]
We welcome any contributions! Please create an issue before submitting a pull request.
When creating a pull request, be sure to include a screenshot! 🎨
MIT © Healthie Inc