temp-referral-api
v1.0.0
Published
Dev Instructions
Downloads
5
Readme
Widget-and-Hosted-Page
Dev Instructions
- Open test.html to see how it looks
- Edit script.js as you see fit
- run
npm i -D tailwindcss
to install tailwind locally - possibly, if necessary, run
npm install @tailwindcss/forms
- run
npx tailwindcss -i ./input.css -o ./output.css --watch
which will continuously rebuild output.css for you. - This means that you should not edit output.css, you should edit
input.css
and andtailwind.config.js
only. - You'll want to minify the CSS and JS files and then upload to S3 to "deploy".
Deployment Instructions
- Update the second-to-last line for the widget version. Get the date with the UNIX command
date -u
. - Run
python3 deploy.py
for DEV or PRODUCTION. Self-explanatory from there. (The script minifies JS/CSS and deploys to S3.)