This is an example of a booking widget built on top of the Spurwing API. The widget lets a client select an appointment type, find an available appointment slot, provide personal info, and book the appointment. This is the same widget that we host automatically for all Spurwing customers. You can host this widget yourself as-is, fork it and make modifications, or just use it as an example of how to make different API calls. Learn more about the Spurwing Scheduling API.
First, make sure you have a Spurwing API key and account. If you don't have one, you can go to https://spurwing.io and chat with one of our developers to see if you're a fit.
Second, clone the repository to your computer, and install dependencies.
git clone https://github.com/SpurwingIO/Spurwing-ReactJS-widget.git
cd spurwing_widget
npm install
Third, adjust config options in (App.tsx)[https://github.com/SpurwingIO/Spurwing-ReactJS-widget/blob/master/src/App.tsx]. They can either be set directly in the code, or passed in via URL params. You can get your provider ID from your Spurwing Dashboard.
To run the project locally, just do
npm start
When you are ready to deploy, you can run
npm build
This will generate a production-ready build that can be hosted with any static website host. We really like Netlify and S3/Cloudfront ourselves.
- Our website: https://www.spurwing.io/
- For public issues and bugs please use the GitHub Issues Page.
- For enquiries and private issues reach out to us at [email protected]
- Join our Discord Community Server: https://discord.gg/j3gd5Qk5uW
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 © Spurwing