- Google Cloud IAM privileges & roles
- Google Cloud Service Accounts
- Google Cloud Run
- Node 16
- Typescript
- GTS
- ESLint
- Prettier
- Nodemon
- Concurrently
- Twitter API
- Twitter API SDK
- nvm use 16 - Switch to Node 16 (nvm install 16.5.1 if not installed)
- npm install - Install all node_modules for the GCF
- TWITTER_BEARER_TOKEN= npm run watch - Serve the example GCF locally
- http://localhost:8080/ - Visit the locally served GCF
After cloning this repository, you can upload a zip of the example GCF directory directly to a created Cloud Function. Alternatively, you can manually create & copy GCF files and their contents into your created Cloud Function.
In order to use the Twitter API SDK, you'll need to sign-up to the Twitter developer portal and create a Bearer token & access tokens. Those should be stored in Google Cloud Secrets as TWITTER_BEARER_TOKEN, TWITTER_CLIENT_ID, TWITTER_CLIENT_SECRET