Skip to content

Commit

Permalink
add environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
millionhz committed May 9, 2023
1 parent 90f1aa1 commit 77930e6
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@

## Install Dependencies


### Server

```bash
cd ./server && npm i -D
```

### Client

```bash
cd ./client && npm i -D
```

## Run


### Server (with live reload)

```bash
Expand All @@ -44,4 +44,17 @@ cd ./client && npm start

```bash
cd ./client && npm run dev
```
```

## Environment Variables

The following is the schema for the environment variables used in the server.

| Variable Name | Description |
| --- | --- |
| DB_HOST | The hostname of the database server. |
| DB_USER | The username to authenticate with the database. |
| DB_PASS | The password to authenticate with the database. |
| DB_PORT | The port on which the database server is listening. |
| DB_NAME | The name of the database to connect to. |
| JWT_SECRET | The secret key used to sign JSON Web Tokens for authentication. |

0 comments on commit 77930e6

Please sign in to comment.