Skip to content

bllsglm/Mern-Auth-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mern Authentication App

This App built with the MERN stack & Redux-RTK.

This project is part of my MERN Stack portfolio. It is a simple Mern App that uses RTK Query.

Table of Contents

Features

  • User registration and login.
  • Easy-to-use and user-friendly interface.
  • User authentication with JsonWebToken
  • Clean and intuitive design.
  • Responsive layout for mobile and desktop.
  • Built with MERN stack (MongoDB, Express, React, Node.js)
  • Utilizes Redux Toolkit and RTK Query for state management.

Usage

  1. Create a MongoDB database and obtain your MongoDB URI from MongoDB Atlas.

  2. Set the following environment variables:

Environment Variables

NODE_ENV = development
PORT = 5000
MONGO_URI = your mongodb uri
JWT_SECRET = 'abc123'

Installation

3. Install Dependencies (frontend & backend):

npm install
cd frontend
npm install

Run the Application

# Run frontend (:3000) & backend (:5000)
npm run dev

# Run backend only
npm run server
  1. BUILD & DEPLOY
# Create frontend prod build
cd frontend
npm run build