Skip to content

Commit c35f2a8

Browse files
committed
fix typos
1 parent 9fb5ec2 commit c35f2a8

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Dependencies
44

55
- nodejs https://nodejs.org/en/ (v12+)
6-
- Postgres
6+
- PostgreSQL
77
- ElasticSearch (7.x)
88

99
## Configuration
@@ -22,20 +22,20 @@ The following parameters can be set in config files or in env variables:
2222
- `AUTH0_CLIENT_ID`: Auth0 client id, used to get TC M2M token
2323
- `AUTH0_CLIENT_SECRET`: Auth0 client secret, used to get TC M2M token
2424
- `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
2727
- `PROJECT_API_URL`: the project service url
28-
- `TC_API`: the topcoder v5 url
28+
- `TC_API`: the Topcoder v5 url
2929
- `ORG_ID`: the organization id
3030
- `HOST`: the elasticsearch host
3131
- `ES_INDEX_JOB`: the job index
3232
- `ES_INDEX_JOB_CANDIDATE`: the job candidate index
3333
- `ES_INDEX_RESOURCE_BOOKING`: the resource booking index
3434

3535

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.
3939
Run `npm run init-db` to create table
4040

4141
## ElasticSearch Setup
@@ -50,7 +50,7 @@ Run `npm run delete-index` to delete ES index.
5050
- Run lint `npm run lint`
5151
- Run lint fix `npm run lint:fix`
5252
- 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`
5454
- Start app `npm start`
5555
- App is running at `http://localhost:3000`
5656

Verification.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
## Postman test
44
- Refer `tools/mock-project-service/ReadMe.md` to start the mock app
5-
- Refer `ReadMe.md` to start the app and postgres database
5+
- Refer `ReadMe.md` to start the app and postgreSQL database
66
- Run `npm run init-db` to init db before testing.
77
- Run `npm run create-index` to create es index before testing
88
- Import Postman collection and environment file in the `docs` folder to Postman and execute the scripts to validate the app from top to bottom.
99

1010

11-
1211
## Unit test Coverage
1312

1413

config/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
TC_API: process.env.TC_API || 'https://api.topcoder-dev.com/v5',
1616
ORG_ID: process.env.ORG_ID || '36ed815b-3da1-49f1-a043-aaed0a4e81ad',
1717

18-
POSTGRES_URL: process.env.POSTGRES_URL || 'postgres://postgres:postgres@localhost:5432/postgres',
18+
DATABASE_URL: process.env.DATABASE_URL || 'postgres://postgres:postgres@localhost:5432/postgres',
1919
DB_SCHEMA_NAME: process.env.DB_SCHEMA_NAME || 'bookings',
2020
PROJECT_API_URL: process.env.PROJECT_API_URL || 'http://localhost:4000',
2121

src/models/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const config = require('config')
1313
const basename = path.basename(module.filename)
1414
const db = {}
1515

16-
const sequelize = new Sequelize(config.get('POSTGRES_URL'), {
16+
const sequelize = new Sequelize(config.get('DATABASE_URL'), {
1717
logging: false
1818
})
1919

0 commit comments

Comments
 (0)