Skip to content

Looyank/nestjs-startup-template

Repository files navigation

Use

recommend @antfu/ni to manage package

# install dependencies
ni
# init database
cp example.env .env
nr migrate
# generate dto from schema
nr generate

Auth

The project uses global guards, so all APIs have authentication, except for the registration and login interfaces. After logging in, the obtained token needs to be added to the header in the following manner: Authorization: Bearer [token]

if you want to open an opi, you can use @Public decorator.

Swagger

localhost:3000/swagger

About

nestjs startup template(prisma, jwt)

Resources

Stars

Watchers

Forks