Skip to content

Commit

Permalink
read me and env.example
Browse files Browse the repository at this point in the history
  • Loading branch information
harshsbhat committed Dec 29, 2024
1 parent 9239851 commit eb66149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
19 changes: 2 additions & 17 deletions .env.example
Original file line number Diff line number Diff line change
@@ -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"
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eb66149

Please sign in to comment.