Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@ Create environment files for both the backend and the frontend before running th

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

Create a file at `apps/api/.env` with:
Copy the example environment file and update it with your values:

```bash
cd apps/api
cp .env.example .env
```

Then edit `apps/api/.env` and fill in the required values:

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

### Building and Running

1. Make sure you have your `.env` file set up in `apps/api/.env` (see [Backend environment variables](#backend-appsapienv) section above)
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)

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

Expand Down
32 changes: 32 additions & 0 deletions apps/api/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Note: pls don't use values as strings for the below variables, if you wanna run using docker becuase in this case, docker build fails.
# simply use a format like this: name-of-the-variable=variable-value
# for example: PORT=8080

# Required
CORS_ORIGINS=http://localhost:3000
NODE_ENV=development
PORT=8080

DATABASE_URL=postgresql://USER:PASSWORD@localhost:5432/your_database_name?schema=public
JWT_SECRET=replace-with-a-strong-random-secret

# compulsory for the project search tool
# Get a PAT from here https://github.com/settings/developers
GITHUB_PERSONAL_ACCESS_TOKEN=token-from-your-github-account

# for payments
RAZORPAY_KEY_ID=razorpay-key-id
RAZORPAY_KEY_SECRET=razorpay-key-secret
RAZORPAY_WEBHOOK_SECRET=razorpay-webhook-secret

# to send slack invite.
# it'll be similar to : https://join.slack.com/t/name-of-ur-org/shared_invite/invite-id
SLACK_INVITE_URL=slack-invite-url

# to send the email (transactional)
# get one from here: https://www.zoho.com/zeptomail/pricing.html?src=pd-menu
ZEPTOMAIL_TOKEN=zeptomail-token

# key for the encryption
# can be created by running this: echo "$(openssl rand -hex 32)opensox$(openssl rand -hex 16)"
ENCRYPTION_KEY=encryption-key