Skip to content

Explore a Next.js application designed to seamlessly integrate user authentication, providing a secure and intuitive user experience.

Notifications You must be signed in to change notification settings

RAVIGANESHMBHAT/NextJS-Authentication

Repository files navigation

Next.js Authentication App

Explore a Next.js application designed to seamlessly integrate user authentication, providing a secure and intuitive user experience. This repository contains a fully functional Next.js project featuring a robust authentication system, complete with login, logout, and signup functionalities. Utilizing modern technologies such as Axios for API requests and react-hot-toast for elegant notifications, this app showcases best practices in handling user sessions and protecting routes.

Key Features

  • Secure Authentication Flow: Implementing a streamlined login and signup process, ensuring user credentials are handled securely. Passwords are encrypted using bcryptjs before storing in the database.
  • Email Confirmation: Utilizing Nodemailer and Mailtrap to send email confirmations during the signup process, enhancing security and user verification.
  • Session Management: Efficiently managing user sessions, with seamless integration of logout functionality to ensure user data protection.
  • Interactive UI: Leveraging Tailwind CSS for a beautifully designed, responsive user interface that enhances usability and user engagement.
  • Client-Side Navigation: Utilizing Next.js's built-in routing capabilities to provide a smooth, SPA-like experience across the authentication pages.
  • Toast Notifications: Integrating react-hot-toast to display informative success and error messages, improving the overall user interaction.
  • Profile Management: A dedicated profile page that allows users to view their details, reinforcing the app's authentication capabilities.
  • Data Storage: Using MongoDB Atlas as the database solution for storing user details securely and efficiently.

Whether you're looking to implement authentication in your Next.js project or seeking inspiration for creating engaging user interfaces with Tailwind CSS, this repository offers valuable insights and practical code examples. Dive into the code to discover how to build secure, scalable, and user-friendly web applications with Next.js.

Screenshots

  • Sign Up tuxpi com 1712470719

  • Verify Email tuxpi com 1712472322

  • Successful Email Verification tuxpi com 1712474775

  • Failed to Verify Email tuxpi com 1712474721

  • Login tuxpi com 1712470649

  • Profile tuxpi com 1712470785

  • Profile Details tuxpi com 1712470849

  • Home Page which can be accessed after successful login tuxpi com 1712470887

  • Toast message on the top tuxpi com 1712471311

Getting Started

To get a local copy up and running follow these simple steps.

  1. Clone the repo
git clone https://github.com/RAVIGANESHMBHAT/NextJS-Authentication.git
  1. Go to the project folder
cd NextJS-Authentication
  1. Install NPM packages
npm install

or

yarn install
  1. Create .env file and enter valid data. (Refer to .env.sample file)

  2. Run the development server

npm run dev

or

yarn dev

Useful links

About

Explore a Next.js application designed to seamlessly integrate user authentication, providing a secure and intuitive user experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published