AL
alexagranov/gb-sample-react-app
Sample React app with widgets that access the GoneBusy API using gonebusy-nodejs-client
--
Gonebusy Sample React App
This is a sample React app that demonstrates how to incorporate the gonebusy-nodejs-sdk into a smooth UX for booking.
Prerequisites
Getting Started
$ git clone git@github.com:<your_fork>/sample-react-app.git
$ cd sample-react-app
$ yarn install
Setup sample resources, service, and time windows
# To create new resources, service, and time windows
yarn setup -- API_KEY
# To teardown all resources, service, and time windows
yarn setup -- API_KEY teardown
Run a local dev environment
Start a local server running on port 8080, at http://localhost:8080. Bundles js and css via webpack with hot reload.
It starts an express server on localhost:4000 to access gonebusy-nodejs-client and all requests made on localhost:8080 proxies to localhost:4000.
$ yarn dev-start
Build Static files for deployment to CDN/hosting
Minifies js and css.
$ yarn run build
Run a local server serving Static files
Minifies js and css and starts server at http://localhost:4000
$ yarn start
Add new dependencies
$ yarn add some-package-name