Skip to content

Commit f2472ec

Browse files
authored
Merge pull request #113 from BinaryStudioAcademy/fix/thjs-64-updated-readme-and-package.json
THJS-64: Updated readme and package.json
2 parents 8ebe94a + a6d4425 commit f2472ec

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ The main frameworks and libraries used in the project are listed here. A complet
117117
3. Run [migrations](https://knexjs.org/#Migrations) and seeds to populate the database with demo data. To do this, in the command line (terminal) in the server folder, run:
118118
119119
```
120-
npm run migrate:run
120+
npm run migrate:dev
121121
npm run seed:run
122122
```
123123
@@ -126,7 +126,7 @@ The main frameworks and libraries used in the project are listed here. A complet
126126
4. To start the server in the command line (terminal) in the server folder, run:
127127
128128
```
129-
npm start
129+
npm start:dev
130130
```
131131
132132
5. To test the correct completing the task in the command line (terminal) in the server folder, run:

server/.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# APPLICATION
33
#
44
# APP_PORT - default. own preference might be used
5+
APP_HOST=localhost
56
APP_PORT=3001
67
NODE_ENV=development
78

@@ -21,6 +22,8 @@ DB_PASSWORD=postgres
2122
DB_HOST=localhost
2223
DB_PORT=5432
2324
DB_CLIENT=pg
25+
DB_POOL_MIN=1
26+
DB_POOL_MAX=10
2427

2528
#
2629
# AUTHENTICATION

server/jest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
/* eslint-disable import/no-default-export */
12
import { pathsToModuleNameMapper } from 'ts-jest';
3+
24
import tsconfigJson from './tsconfig.json' assert { type: 'json' };
35

46
const manageKey = (key: string): string => {
@@ -22,7 +24,6 @@ export default {
2224
testMatch: ['<rootDir>/tests/test-cases/**/*.test.ts'],
2325
transformIgnorePatterns: ['node_modules/'],
2426
testPathIgnorePatterns: ['node_modules/', 'dist/'],
25-
setupFilesAfterEnv: ['<rootDir>/tests/helpers/app-setup/app-setup.helper.ts'],
2627
moduleNameMapper: manageMapper(
2728
pathsToModuleNameMapper(tsconfigJson.compilerOptions.paths, {
2829
prefix: '<rootDir>/'

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"lint:js": "npx eslint --ext .ts src",
2020
"lint": "npm run lint:js",
2121
"build": "tsc && tsc-alias",
22-
"pretest": "cross-env NODE_ENV=test npm run migrate:run",
22+
"pretest": "cross-env NODE_ENV=test npm run migrate:dev",
2323
"test": "cross-env NODE_ENV=test node --experimental-vm-modules --expose-gc --no-compilation-cache ../node_modules/jest/bin/jest.js --runInBand",
2424
"test:starter": "npm run test -- --verbose --rootDir=tests/api/0-starter/",
2525
"test:dislike-post": "npm run test -- --verbose --rootDir=tests/api/1-dislike-post/",

0 commit comments

Comments
 (0)