GithubHelp home page GithubHelp logo

abdurraahimm / authinmern Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.89 MB

This is a simple MERN stack application that allows users to authenticate with a username and password.

JavaScript 98.64% HTML 1.17% CSS 0.19%
jwt-authentication nodemailer react-router react-toastify tailwindcss vitereact multer

authinmern's Introduction

Authenticate with MERN Stack

Description

This is a simple MERN stack application that allows users to authenticate with a username and password. The application uses React for the front end, Node.js and Express for the back end, and MongoDB for the database. The application uses JWT for authentication and bcrypt for password hashing.

Installation

  1. Clone the repository
git clone https://github.com/AbdurRaahimm/AuthInMERN.git
  1. Go to the project directory
cd AuthInMERN
  1. Install dependencies for server and client
npm install
cd client
npm install
  1. Create a .env file in the root directory and add the following environment variables
JWT_SECRET = jwt secret
DB_URI = mongodb uri
EMAIL = smtp email
PASSWORD = smtp password
  1. Start the application server and client
npm start
cd client
npm run dev

Usage

  1. Register a new user by clicking on the register link
  2. Login with the registered user
  3. Logout by clicking on the logout link
  4. View the profile page by clicking on the profile link

Screenshots

  1. Register page Register

  2. Login page Login

  3. home page Home

  4. Profile page Profile

  5. Forgot password page Forgot

  6. Reset password page Reset

Features

  1. Register a new user
  2. Login with a registered user
  3. Logout
  4. View the profile page
  5. Protected routes
  6. Password hashing
  7. JWT authentication
  8. Forgot password
  9. Reset password
  10. Profile picture upload

Technologies

  1. React (vite)
  2. Node.js
  3. Express
  4. MongoDB
  5. JWT
  6. Bcrypt
  7. Nodemailer
  8. Tailwind CSS
  9. React Router
  10. react-toastify
  11. multer

authinmern's People

Contributors

abdurraahimm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.