Skip to content

Commit

Permalink
thjs-64: * Readme + commands
Browse files Browse the repository at this point in the history
  • Loading branch information
JosuerBague committed Dec 18, 2023
1 parent 8ebe94a commit 6a6c786
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ The main frameworks and libraries used in the project are listed here. A complet
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:
```
npm run migrate:run
npm run migrate:dev
npm run seed:run
```
Expand All @@ -126,7 +126,7 @@ The main frameworks and libraries used in the project are listed here. A complet
4. To start the server in the command line (terminal) in the server folder, run:
```
npm start
npm start:dev
```
5. To test the correct completing the task in the command line (terminal) in the server folder, run:
Expand Down
3 changes: 3 additions & 0 deletions server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# APPLICATION
#
# APP_PORT - default. own preference might be used
APP_HOST=localhost
APP_PORT=3001
NODE_ENV=development

Expand All @@ -21,6 +22,8 @@ DB_PASSWORD=postgres
DB_HOST=localhost
DB_PORT=5432
DB_CLIENT=pg
DB_POOL_MIN=1
DB_POOL_MAX=10

#
# AUTHENTICATION
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"lint:js": "npx eslint --ext .ts src",
"lint": "npm run lint:js",
"build": "tsc && tsc-alias",
"pretest": "cross-env NODE_ENV=test npm run migrate:run",
"pretest": "cross-env NODE_ENV=test npm run migrate:dev",
"test": "cross-env NODE_ENV=test node --experimental-vm-modules --expose-gc --no-compilation-cache ../node_modules/jest/bin/jest.js --runInBand",
"test:starter": "npm run test -- --verbose --rootDir=tests/api/0-starter/",
"test:dislike-post": "npm run test -- --verbose --rootDir=tests/api/1-dislike-post/",
Expand Down

0 comments on commit 6a6c786

Please sign in to comment.