The Stack
- Serverless compute: Google Cloud Functions (Node.js)
- Serverless data store: Redis via Upstash
- Deployment tool: gcloud
Prerequisites:
- A GCP account for Google Cloud functions.
- Install Google Cloud SDK.
- An Upstash account for Serverless Redis.
Step 1: Init the Project
- Create a folder, then run
npm initinside the folder.
Step 2: Install a Redis Client
Our only dependency is redis client. Install go-redis vianpm install ioredis