Overview
This is a boilerplate project for user authentication using Nuxt 3, MongoDB, TypeScript, Prisma, Tailwind, VeeValidate, and JSON Web Tokens. It aims to provide a robust and scalable structure for creating a complete login and authentication system.
Features
- Nuxt 3: A modern web development framework based on Vue.js
- MongoDB: A NoSQL database for storing user data
- TypeScript: A statically typed superset of JavaScript for enhanced code quality
- Prisma: A database toolkit for querying and accessing databases
- Tailwind: A utility-first CSS framework for easy and flexible styling
- VeeValidate: A form validation library for ensuring data integrity
- JSON Web Tokens (JWT): A secure method for transmitting information between parties as a JSON object
Installation
- Make sure you have Node.js, NPM or Yarn, and MongoDB installed on your machine.
- Clone the repository to your local machine using the following command:
git clone [repository url]
- Navigate to the project folder and install the dependencies using NPM or Yarn:
npm install
or
yarn install
- Create a
.envfile in the root of the project and add the following environment variables:
ENV_VARIABLE_NAME=example
- Start the development server using the following command:
npm run dev
or
yarn dev
- The server will start at http://localhost:3000.
Summary
The Boilerplate de Autenticação com Nuxt 3 provides a ready-to-use foundation for implementing user authentication in applications. With its pre-configured setup including Nuxt 3, MongoDB, TypeScript, Prisma, Tailwind, VeeValidate, and JSON Web Tokens, developers can quickly create secure login and authentication systems. The provided endpoints allow for user login, registration, retrieval of user information, and token renewal. Contributions to this project are welcome, and it is licensed under the MIT license.