GitHub Repository
You can find the project source code on GitHub.
Prerequisites
Project Setup
Initialize the project:@upstash/redis
Counter Function Setup
Create a new function from template./src/functions/CounterFunction.ts
/src/functions/CounterFunction.ts
Create Azure Resources
You can use the command below to find thename
of a region near you.
Database Setup
Create a Redis database using Upstash Console or Upstash CLI and setUPSTASH_REDIS_REST_URL
and UPSTASH_REDIS_REST_TOKEN
in your Function App’s settings.