Skip to content

Latest commit

 

History

History
65 lines (36 loc) · 2.19 KB

README.md

File metadata and controls

65 lines (36 loc) · 2.19 KB

The Spurwing Booking Widget

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.

demo

Usage

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

Deploying to Production

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.

Support

Submitting a PR

We welcome any contributions! Please create an issue before submitting a pull request.

When creating a pull request, be sure to include a screenshot! 🎨

License

MIT © Spurwing

image