Skip to content

Commit 346004d

Browse files
committed
added Postman collection file
1 parent 1354d8b commit 346004d

32 files changed

+444
-368
lines changed

NestAuth.postman_collection

Lines changed: 409 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
$ npm install
88
```
99

10+
## Setup databases
11+
12+
Make sure you have docker installed on your local machine.
13+
14+
```bash
15+
# setup postgres and redis with docker
16+
$ docker compose up
17+
```
18+
1019
## Running the app
1120

1221
```bash
@@ -20,6 +29,10 @@ $ npm run start:dev
2029
$ npm run start:prod
2130
```
2231

32+
## Test the app using Postman
33+
34+
Import the file `NestAuth.postman_collection` in your Postman. It will add a new collection name `Nest Auth` in your workspace.
35+
2336
## License
2437

2538
Nest is [MIT licensed](LICENSE).
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
version: '3'
1+
version: '3.8'
22

33
services:
44
db:
55
image: postgres
6+
container_name: postgres
67
restart: always
78
ports:
89
- '5432:5432'
@@ -11,6 +12,7 @@ services:
1112

1213
redis:
1314
image: redis
15+
container_name: redis
1416
restart: always
1517
ports:
1618
- '6379:6379'

src/app.controller.spec.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/app.controller.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/app.module.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { Module } from '@nestjs/common';
22
import { ConfigModule, ConfigType } from '@nestjs/config';
33
import { TypeOrmModule, TypeOrmModuleOptions } from '@nestjs/typeorm';
4-
import { AppController } from './app.controller';
5-
import { AppService } from './app.service';
64
import { CoffeesModule } from './coffees/coffees.module';
75
import databaseConfig from './config/database.config';
86
import { IamModule } from './iam/iam.module';
@@ -23,7 +21,5 @@ import { UsersModule } from './users/users.module';
2321
UsersModule,
2422
IamModule,
2523
],
26-
controllers: [AppController],
27-
providers: [AppService],
2824
})
2925
export class AppModule {}

src/app.service.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/coffees/coffees.controller.spec.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/coffees/coffees.service.spec.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/iam/authentication/api-keys.service.spec.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)