## Description

[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.

## Quick start project
```bash
$ yarn start:dev
```
Then you can browse [http://127.0.0.1:3000/api/](http://127.0.0.1:3000/api/)

### Running the production server.

```bash
$ yarn start
```
## Project file structure
```
├── README.md
├── config
│   ├── ac.config.ts   #access controll config
│   └── index.ts       #project config
├── dist
├── gadmin-cli.json
├── node_modules
├── package.json
├── prisma
│   ├── ERD.svg        #Entity Relationship Diagram
│   ├── dev.db         #local sqlite db file
│   ├── migrations
│   └── schema.prisma  #prisma schema
├── seed
│   ├── index.ts       #database init
│   └── products.ts
├── src
│   ├── app.controller.spec.ts
│   ├── app.controller.ts
│   ├── app.module.ts  #nest root module
│   ├── app.service.ts
│   ├── modules        #customize logic
│   ├── generated      #auto generated code by prisma generator, never modify it
│   └── main.ts        #project entry
├── test
├── tsconfig.build.json
├── tsconfig.json
└── yarn.lock
```

## Project config
config/index.ts
- [prisma config](https://github.com/notiz-dev/nestjs-prisma#prismamodule-configuration)
- [logger config](https://github.com/winstonjs/winston)
- [swagger](https://docs.nestjs.com/openapi/introduction)

## Access control
config/ac.config.ts, [read more](https://github.com/nestjsx/nest-access-control)

## Test

```bash
# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov
```

## License
Nest is [MIT licensed](LICENSE).
