Refactor: Improve README env variable documentation
Co-authored-by: mathieumoran1 <[email protected]>
This commit is contained in:
co-authored by
mathieumoran1
parent
afb158beca
commit
1f98a1a24a
@@ -27,20 +27,14 @@ npm install
|
||||
node index.js
|
||||
```
|
||||
|
||||
Configure these in your `.env` file (**required**: `MONGO_URI`, `JWT_SECRET`):
|
||||
|
||||
**DOG_NAMES=**`woof, WOOF, Woof` (for "verification")<br>
|
||||
**GITHUB_OWNER=**`quoije` (for version history)<br>
|
||||
**GITHUB_REPO=**`oscars-pool` (for version history)<br>
|
||||
**JWT_SECRET=**`RANDOM STRING` (for authentication token)<br>
|
||||
**MONGO_URI=**`mongodb+srv://USER:[email protected]/?retryWrites=true&w=majority&appName=Cluster69`<br>
|
||||
**OMDB_API=**`1234567` (for movie info)
|
||||
|
||||
Example `.env`:
|
||||
Add this to your `.env` (**required**: `MONGO_URI`, `JWT_SECRET`):
|
||||
|
||||
```bash
|
||||
# required
|
||||
MONGO_URI=mongodb://127.0.0.1:27017/oscars-pool
|
||||
JWT_SECRET=change-me
|
||||
|
||||
# optional
|
||||
DOG_NAMES=woof,WOOF,Woof
|
||||
OMDB_API=your_omdb_key
|
||||
GITHUB_OWNER=quoije
|
||||
|
||||
Reference in New Issue
Block a user