Skip to content

User Authentication Platform built with Next.js, MongoDB, and Tailwind CSS. Features JWT-based authentication, user registration, and login, along with a responsive UI using Shadcn components. Efficient API calls are made using server actions for seamless user experience.

Notifications You must be signed in to change notification settings

Mshandev/JWT-Authentication-Nextjs

Repository files navigation

JWT-Authentication-Nextjs

This repository hosts the source code for a user authentication platform built with Next.js, MongoDB, JWT, Bcrypt and Tailwind CSS. The application features user registration and login, utilizing JWT for secure authentication, along with a responsive UI built with Shadcn components.

Demo

Features

  • User registration and login with JWT authentication
  • Responsive design with Tailwind CSS
  • Beautifully styled forms and user interface using Shadcn components
  • Seamless API calls made using Next.js server actions
  • Easy integration with MongoDB for data management
  • Store JWT Token in Cookie

Screenshots

Login

  • Login Page

Signup

  • Signup Page

Home

  • Home Page

Run Locally

Clone the project

   https://github.com/Mshandev/JWT-Authentication-Nextjs.git

Go to the project directory

    cd JWT-Authentication-Nextjs

Install dependencies

    npm install

Setup Environment Vaiables

  JWT_SECRET=YOUR_KEY
  MONGO_URI = YOUR-MONGO-URL

Start the server

    npm run dev

Tech Stack

Deployment

The application is deployed on Vercel.

Contributing

Contributions are always welcome! Just raise an issue, and we will discuss it.

Feedback

If you have any feedback, please reach out to me here

About

User Authentication Platform built with Next.js, MongoDB, and Tailwind CSS. Features JWT-based authentication, user registration, and login, along with a responsive UI using Shadcn components. Efficient API calls are made using server actions for seamless user experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published