3
3
## Dependencies
4
4
5
5
- nodejs https://nodejs.org/en/ (v12+)
6
- - Postgres
6
+ - PostgreSQL
7
7
- ElasticSearch (7.x)
8
8
9
9
## Configuration
@@ -22,20 +22,20 @@ The following parameters can be set in config files or in env variables:
22
22
- ` AUTH0_CLIENT_ID ` : Auth0 client id, used to get TC M2M token
23
23
- ` AUTH0_CLIENT_SECRET ` : Auth0 client secret, used to get TC M2M token
24
24
- ` AUTH0_PROXY_SERVER_URL ` : Proxy Auth0 URL, used to get TC M2M token
25
- - ` POSTGRES_URL ` : Postgres database url.
26
- - ` DB_SCHEMA_NAME ` : string - postgres database target schema
25
+ - ` DATABASE_URL ` : PostgreSQL database url.
26
+ - ` DB_SCHEMA_NAME ` : string - PostgreSQL database target schema
27
27
- ` PROJECT_API_URL ` : the project service url
28
- - ` TC_API ` : the topcoder v5 url
28
+ - ` TC_API ` : the Topcoder v5 url
29
29
- ` ORG_ID ` : the organization id
30
30
- ` HOST ` : the elasticsearch host
31
31
- ` ES_INDEX_JOB ` : the job index
32
32
- ` ES_INDEX_JOB_CANDIDATE ` : the job candidate index
33
33
- ` ES_INDEX_RESOURCE_BOOKING ` : the resource booking index
34
34
35
35
36
- ## Postgres Database Setup
37
- Go to https://www.postgresql.org/ download and install the Postgres .
38
- Modify ` POSTGRES_URL ` under ` config/default.js ` to meet your environment.
36
+ ## PostgreSQL Database Setup
37
+ Go to https://www.postgresql.org/ download and install the PostgreSQL .
38
+ Modify ` DATABASE_URL ` under ` config/default.js ` to meet your environment.
39
39
Run ` npm run init-db ` to create table
40
40
41
41
## ElasticSearch Setup
@@ -50,7 +50,7 @@ Run `npm run delete-index` to delete ES index.
50
50
- Run lint ` npm run lint `
51
51
- Run lint fix ` npm run lint:fix `
52
52
- Clear and init db ` npm run init-db `
53
- - Clear and create es index ` npm run delete-index, npm run create-index `
53
+ - Clear and create es index ` npm run delete-index && npm run create-index `
54
54
- Start app ` npm start `
55
55
- App is running at ` http://localhost:3000 `
56
56
0 commit comments