/mern-jwt-javascript

💦 The main MERN structure with authentication based JWT.

Primary LanguageJavaScript

MERN System With Authentication

# MERN stack authentication project with Login, Register, Forgot & Reset Password features
# Redux state management in the frontend ( React.js )
# Axios api calls for making request to the node.js ( express.js ) server
# Jwt based authentication
# Hashed password saving in the mongoDB database
# Forgot password feature i.e Reset password link will be sent to the user
# SendGrid mail functionality

Usage

Create .env file and add the following environment variables:

# PORT=5000
# MONGO_URI= your mongo uri connection string from mongodb
# JWT_SECRET=your JWT secret
# EMAIL_SERVICE=SendGrid
# EMAIL_USERNAME=can be found in sendgrid dashboard
# EMAIL_PASSWORD=can be found in sendgrid dashboard
# EMAIL_FROM=your email associated with sendgrid account i.e reset password link will be sent from this email to the recipient mail address

Install dependencies

# Backend deps
npm install
# Frontend deps
cd client
npm install

Run Server

  • (Local)
npm run dev
  • (production)

Next Step

  • Establish the production environment