a tool to scrape events and blog entries from a squarespace feed into an email-friendly html format
- Generate a new private key (https://console.firebase.google.com/u/0/project/{NAME_OF_YOUR_PROJECT}settings/serviceaccounts/adminsdk)
- Store that in a new file called
./squarescrape-key.json
- Run
firebase login
- Run
npm run dev
If you change things in the functions
folder, you'll need to stop and restart the dev
process above. You can also just develop on the functions by:
cd functions
npm run dev
The deployment requires that:
- You have a firebase project
- Modify
firebase.json
andsrc/api.ts
with your firebase project details - Have your projet setup as a Blaze pay as you go plan in firebase
- Requires a dependency of
npm i -g firebase-tools
to be on the machine
Then:
- Run
firebase login
to authenticate with firebase - Run
firebase deploy
to deploy all the things (functions
,hosting
)
Alternatively, this can be done via github.
- Clone this repo to your GitHub account
- Run
firebase login:ci
locally to get aFIREBASE_TOKEN
- Store that as a secret in your GitHub repo (called
FIREBASE_TOKEN
) - When you push to
master
, the action will run, build, and deploy your stuff to Firebase 😎.
- Add multiple templates to choose from
- Add authentication and storing of feeds
R&D Stuff
- Add changelog and release notes flow
- Add
husky
to run some checks prior to release