recommend @antfu/ni to manage package
# install dependencies
ni
# init database
cp example.env .env
nr migrate
# generate dto from schema
nr generate
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.
localhost:3000/swagger