The NestJS Auth Starter project is a starter project for NestJS that provides authentication and authorization functionality out of the box. It is built on top of the popular NestJS framework and uses the mongoose library to access the database. For authentication and authorization, it relies on the powerful jsonwebtoken library, while password hashing is performed using bcrypt. Additionally, the project utilizes the xstate library for state management in authentication cases, and includes tests for all cases. With this starter project, developers can quickly set up a secure and robust authentication system in their NestJS applications.
npm install
cp .env.example .env
MONGO_URI=Mongo_uri
JWT_SECRET=secret
npm run start
# watch mode
npm run start:dev
http://localhost:3000/api