Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Fix .env paths in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zmillman authored May 7, 2024
1 parent e72ffde commit dc169b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,24 @@ npm install
3\. Follow the steps on [the Google documentation](https://developers.google.com/identity/protocols/oauth2/web-server#creatingcred) to configure a new application and get a client ID and secret. (The callback url is `http://localhost:3000/auth/google/callback`)

```sh
# .env.local
# .env
GOOGLE_CLIENT_ID=<your client id>
GOOGLE_CLIENT_SECRET=<your client secret>
```

Then configure a secret for encrypting session cookies:

```sh
echo "AUTH_SECRET=`openssl rand -base64 33`" >> .env.local
echo "AUTH_SECRET=`openssl rand -base64 33`" >> .env
```

And some settings for the database:

```sh
# .env.local
# .env
DATABASE_USER=app
DATABASE_DB=app
DATABASE_PASSWORD=S3cre7
DATABASE_PASSWORD=S3cre7 # arbitrary secret
DATABASE_URL="postgresql://app:S3cre7@localhost:5432/app?schema=public"
```

Expand Down

0 comments on commit dc169b3

Please sign in to comment.