From eb661490342aaf9a837d3c9bd36d379003fe3dc5 Mon Sep 17 00:00:00 2001 From: Harsh Shrikant Bhat <90265455+harshsbhat@users.noreply.github.com> Date: Sun, 29 Dec 2024 10:41:07 +0530 Subject: [PATCH] read me and env.example --- .env.example | 19 ++----------------- README.md | 5 ++--- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/.env.example b/.env.example index 83b89ad..0cb084a 100644 --- a/.env.example +++ b/.env.example @@ -1,18 +1,3 @@ -# Since the ".env" file is gitignored, you can use the ".env.example" file to -# build a new ".env" file when you clone the repo. Keep this file up-to-date -# when you add new variables to `.env`. +UPSTASH_REDIS_REST_URL="http://localhost:8079" +UPSTASH_REDIS_REST_TOKEN="example_token" -# This file will be committed to version control, so make sure not to have any -# secrets in it. If you are cloning this repo, create a copy of this file named -# ".env" and populate it with your secrets. - -# When adding additional environment variables, the schema in "/src/env.js" -# should be updated accordingly. - -# Drizzle -UPSTASH_REDIS_REST_URL="" -UPSTASH_REDIS_REST_TOKEN="" - -# Example: -# SERVERVAR="foo" -# NEXT_PUBLIC_CLIENTVAR="bar" diff --git a/README.md b/README.md index 67c9569..93ae4dd 100644 --- a/README.md +++ b/README.md @@ -58,11 +58,10 @@ pnpm install cp .env.example .env ``` -- Create a Redis database with Upstash ( Upstash offers a serverless Redis database with a generous free tier of up to 10,000 requests per day. That's more than enough.) Add the following environment variables: +- Spin up the docker file to start the HTTP Redis ``` -UPSTASH_REDIS_REST_URL="" -UPSTASH_REDIS_REST_TOKEN="" +docker compose up -d ``` - Run the project: