File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
source/api/v1/shared/config Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 26
26
27
27
28
28
## ** How to launch**
29
- > To launch application tou need to install ` Docker ` and ` Docker Compose ` on your system
29
+ > To launch application you need to install ` Docker ` and ` Docker Compose ` on your system
30
30
31
31
1 . Clone git repository and go to the directory
32
32
``` Shell
@@ -39,6 +39,17 @@ cd NodeNotes
39
39
docker compose up --build
40
40
```
41
41
42
+ ## ** Environment variables**
43
+
44
+ 1 . ` DATABASE_HOST `
45
+ 2 . ` DATABASE_NAME `
46
+ 3 . ` DATABASE_USER `
47
+ 4 . ` DATABASE_PASSWORD `
48
+ 5 . ` REDIS_CONNECTION_STRING ` (ex. ` redis://127.0.0.1:6379/0 ` )
49
+ 6 . ` JWT_SECRET `
50
+ 7 . ` JWT_EXPIRATION ` (ex. ` 24h ` )
51
+ 8 . ` PORT `
52
+
42
53
## ** ` Jest ` unit tests**
43
54
- App covered with ` Jest ` unit tests
44
55
- Coverage ` 85% `
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ export const CONFIG: Config = {
6
6
7
7
databaseHost : process . env . DATABASE_HOST || "localhost" ,
8
8
databasePort : parseInt ( process . env . DATABASE_PORT || "5432" ) ,
9
- databaseName : process . env . DATABASE_NAME || "NodeNotes " ,
9
+ databaseName : process . env . DATABASE_NAME || "postgres " ,
10
10
databaseUser : process . env . DATABASE_USER || "postgres" ,
11
- databasePassword : process . env . DATABASE_PASSWORD || "Rrobocopid12 " ,
11
+ databasePassword : process . env . DATABASE_PASSWORD || "postgres " ,
12
12
13
13
get databaseConnectionString ( ) : string {
14
14
return `postgres://${ this . databaseUser } :${ this . databasePassword } @${ this . databaseHost } :${ this . databasePort } /${ this . databaseName } `
You can’t perform that action at this time.
0 commit comments