Create .env file as setup the following variables
GITHUB_OWNER=FuroLabs
GITHUB_TOKEN=<github_token>
UPSTASH_REDIS_REST_URL=http://127.0.0.1:8080
UPSTASH_REDIS_REST_TOKEN=<redis_token>This project uses upstash redis as a storage and caching mechanism. Please check their documentation on how to properly setup those environments.
Execute the following command to setup redis and upstash. This setup uses docker (recommended)
docker network create redis-net
# Run Redis in Docker
docker run -d --name redis --network redis-net redis:latest
# Run SRH container
docker run -d \
--name srh \
--network redis-net \
-p 8080:80 \
-e SRH_MODE=env \
-e SRH_TOKEN=redis \
-e SRH_CONNECTION_STRING=redis://redis:6379 \
hiett/serverless-redis-http:latest- Make sure you have Docker installed
- Go to Upstash Redis and create a free account.
- Click “Create Database” and choose REST API (not the default Redis CLI) for serverless access.
- Once the database is created, copy:
- REST URL →
UPSTASH_REDIS_REST_URL - Token →
UPSTASH_REDIS_REST_TOKEN
- Paste them into your
.envfile:
UPSTASH_REDIS_REST_URL=<your_upstash_rest_url>
UPSTASH_REDIS_REST_TOKEN=<your_upstash_redis_token>- Now your application can connect directly to Upstash Redis in the cloud without running Docker locally.
Before starting the development server, install the project dependencies:
npm install
# or
yarn
# or
pnpm installThen run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev