Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Fcmam5 committed May 4, 2024
1 parent 7dbdb6c commit 564ea5e
Show file tree
Hide file tree
Showing 11 changed files with 1,341 additions and 1,127 deletions.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -28,7 +28,11 @@ pnpm i
pnpm i /Users/fcmam5/lab/oss/nest/packages/platform-fastify
```

Run server with `pnpm start:dev`
Run server with:

- `s:d`To start the application with the `enableVersioning()` (uses URI by [default](https://docs.nestjs.com/techniques/versioning#versioning)) (runs: [`src/main.with-default-versioning.ts`](./src/main.with-default-versioning.ts))
- `s:v`To start the application with enabled versioning (uses HEADER for this example), runs: [`src/main.with-enabled-versioning.ts`](./src/main.with-enabled-versioning.ts)
- `s:nv`To start the application with no versioning, runs [`src/main.with-noversioning.ts`](./src/main.with-noversioning.ts)

<details>
<summary>we see that the constraints are set correctly.</summary>
Expand Down
11 changes: 7 additions & 4 deletions package.json
Expand Up @@ -10,20 +10,23 @@
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"s:d": "nest start --entryFile main.with-default-versioning --watch",
"s:v": "nest start --entryFile main.with-enabled-versioning --watch",
"s:nv": "nest start --entryFile main.with-noversioning --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json"
"test:e2e": "jest --config ./test/jest-e2e.json",
"test:e2e-watch": "jest --config ./test/jest-e2e.json --watchAll"
},
"dependencies": {
"@nestjs/common": "^10.2.7",
"@nestjs/core": "^10.2.7",
"@nestjs/platform-fastify": "link:/Users/fcmam5/lab/oss/nest/packages/platform-fastify",
"@nestjs/core": "file:/Users/fcmam5/lab/oss/nest/packages/core/nestjs-core-10.3.8.tgz",
"@nestjs/platform-fastify": "file:/Users/fcmam5/lab/oss/nest/packages/platform-fastify/nestjs-platform-fastify-10.3.8.tgz",
"fastify": "^4.24.1",
"nest-problem-details-filter": "^0.1.0",
"reflect-metadata": "^0.1.13",
Expand Down

0 comments on commit 564ea5e

Please sign in to comment.