Skip to content

Commit 521d0f9

Browse files
committed
chore: add missing env vars
1 parent 46ae0cd commit 521d0f9

File tree

2 files changed

+32
-10
lines changed

2 files changed

+32
-10
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,14 @@ Create environment files for both the backend and the frontend before running th
5858

5959
### Backend (`apps/api/.env`)
6060

61-
Create a file at `apps/api/.env` with:
61+
Copy the example environment file and update it with your values:
62+
63+
```bash
64+
cd apps/api
65+
cp .env.example .env
66+
```
67+
68+
Then edit `apps/api/.env` and fill in the required values:
6269

6370
```bash
6471
# Required
@@ -190,7 +197,7 @@ Alternatively, you can run the API server using Docker. A `Dockerfile` is provid
190197

191198
### Building and Running
192199

193-
1. Make sure you have your `.env` file set up in `apps/api/.env` (see [Backend environment variables](#backend-appsapienv) section above)
200+
1. Make sure you have your `.env` file set up in `apps/api/.env`. You can copy from `.env.example` (see [Backend environment variables](#backend-appsapienv) section above)
194201

195202
2. From the root directory, build the Docker image:
196203

apps/api/.env.example

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
11
# Required
2+
CORS_ORIGINS=http://localhost:3000
3+
NODE_ENV=development
4+
PORT=8080
5+
26
DATABASE_URL="postgresql://USER:PASSWORD@localhost:5432/your_database_name?schema=public"
37
JWT_SECRET="replace-with-a-strong-random-secret"
48

5-
# Optional (good defaults shown)
6-
PORT=8080
7-
CORS_ORIGINS=http://localhost:3000
8-
NODE_ENV=development
9+
# compulsory for the project search tool
10+
# Get a PAT from here https://github.com/settings/developers
11+
GITHUB_PERSONAL_ACCESS_TOKEN=token-from-your-github-account
12+
13+
# for payments
14+
RAZORPAY_KEY_ID=razorpay-key-id
15+
RAZORPAY_KEY_SECRET=razorpay-key-secret
16+
RAZORPAY_WEBHOOK_SECRET=razorpay-webhook-secret
17+
18+
# to send slack invite.
19+
# it'll be similar to : https://join.slack.com/t/name-of-ur-org/shared_invite/invite-id
20+
SLACK_INVITE_URL=slack-invite-url
21+
22+
# to send the email (transactional)
23+
# get one from here: https://www.zoho.com/zeptomail/pricing.html?src=pd-menu
24+
ZEPTOMAIL_TOKEN=zeptomail-token
925

10-
# Optional GitHub integration
11-
# To enable GitHub queries, set GITHUB_PERSONAL_ACCESS_TOKEN in your local .env file
12-
# Generate a classic token with "public_repo" access at https://github.com/settings/tokens
13-
# GITHUB_PERSONAL_ACCESS_TOKEN should NEVER be committed to version control
26+
# key for the encryption
27+
# can be created by running this : echo "$(openssl rand -hex 32)opensox$(openssl rand -hex 16)
28+
ENCRYPTION_KEY=encryption-key

0 commit comments

Comments
 (0)