sutcalag 4cb24e4a11 add global logger interceptor/ add header, ip info in logger %!s(int64=4) %!d(string=hai) anos
..
src 4cb24e4a11 add global logger interceptor/ add header, ip info in logger %!s(int64=4) %!d(string=hai) anos
test c211e8241e init server %!s(int64=4) %!d(string=hai) anos
.eslintrc.js 62bbfb1f59 add collection api %!s(int64=4) %!d(string=hai) anos
.gitignore c211e8241e init server %!s(int64=4) %!d(string=hai) anos
.prettierrc c211e8241e init server %!s(int64=4) %!d(string=hai) anos
README.md 4429e517ca add server readme %!s(int64=4) %!d(string=hai) anos
generate-csv.ts 1ff06d163c fix index params and add document title %!s(int64=4) %!d(string=hai) anos
nest-cli.json 6b1ce97106 update some docs for swagger %!s(int64=4) %!d(string=hai) anos
package.json 8c42c1c6d3 add cache layer %!s(int64=4) %!d(string=hai) anos
tsconfig.build.json c211e8241e init server %!s(int64=4) %!d(string=hai) anos
tsconfig.json 62bbfb1f59 add collection api %!s(int64=4) %!d(string=hai) anos
yarn.lock 8c42c1c6d3 add cache layer %!s(int64=4) %!d(string=hai) anos

README.md

Milvus insight server

Milvus insight server use nest

Milvus insight server depend on milvus2-node-sdk to operate milvus data.

How to run

  1. yarn install
  2. yarn start:dev

Folder Structure

.
├── auth                    # Jwt authentication not useful for now
├── collections             # Manage milvus collections api
├── interceptors            # Nest interceptors related
├── middlewares             # Nest middlewares related
├── milvus                  # Milvus itself infomation api. Every other api modules need import this module.
├── partitions              # Manage milvus partitions api
├── pipe                    # Nest pipe related
├── schema                  # Manage milvus schema api
├── users                   # Working with auth module, not useful for now.
├── utils                   # Common helping functions.
├── app.xxx.ts              # Need import all other modules to app module.
└── main.ts                 # Usually we dont need change this.

How to create new module

  1. nest g module your-module-name
  2. nest g service your-module-name
  3. nest g controller your-module-name

Api validation

We use class-validator to help us. So normally we have dto.ts for every controller file.

Swagger Doc

We need use ApiProperty to tag every field in dto.ts file and use ApiTags in every controller file. After you start server, you can http://localhost:3000/api to see swagger doc.