Skip to content

FuroLabs/Leaderboard

Leaderboard

Getting Started

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.

If you are intending to run Upstash redis locally

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

Running Upstash Redis via Cloud

  1. Go to Upstash Redis and create a free account.
  2. Click “Create Database” and choose REST API (not the default Redis CLI) for serverless access.
  3. Once the database is created, copy:
  • REST URLUPSTASH_REDIS_REST_URL
  • TokenUPSTASH_REDIS_REST_TOKEN
  1. Paste them into your .env file:
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 install

Then run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

About

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •