Basic use of nest.js framework

Foreword:

       First switch the npm mirror source to Alibaba, otherwise the download will be very slow:

        npm config set registry https://registry.npm.taobao.org 
        npm config get registry 

nestJS的中文文档:
https://docs.nestjs.cn/10/introduction

1.Create file

        First create a folder: nestDemo
 

npm i -g @nestjs/cli
nest new project-name

Execute the above two commands, then select npm, and then create the project


 

 2. Run the project




Access test:

3.JWT authentication

Nest framework token login and token verification-CSDN Blog

4. Conjunction number setting (MikroORM)

Create a project from scratch with midwayjs and connect to the mikro-orm framework (must have a java springboot foundation) - CSDN Blog

Guess you like

Origin blog.csdn.net/qq_26112725/article/details/134935854