This project was originally bootstrapped with Create React App.
Table of Contents
This repo serves as the web form for our clients to put on their sites. This form pulls configuration from the web app and submits data to the web app as well.
Deploying New Versions of the Form
There are two places to deploy this form when we make a change:
- NPM package (for the configuration tool in the webapp)
- Google Cloud (for distribution to clients' sites)
Deploying to NPM
When a form update is made, let me know and I'll deploy to NPM for you. The process for right now, though, is as such:
Right now the package is owned by myself. You can find it here: https://www.npmjs.com/package/@camslingshot/slingshot-web-form-widget
- Bump the version in
- Comment the proper code out of
src/index.js(it's notated, so you should see it)
npm publishfrom the application root
Deploying to Google Cloud
Everything necessary to deploy to GCP should be housed in
scripts/deploy.js -- this happens automatically when code is merged to master thanks to the power of Gitlab Pipelines.