iiitl / MERN_AUTH

MERN Task with auth application
0 stars 8 forks source link
foss-weekend foss-weekend-24

Description

This is MERN auth application

It includes the following:

Usage

Env Variables

Rename the .env.example file to .env and add the following

PORT = 4000
MONGO_URI = your mongodb uri
JWT_SECRET = 'abc123'

Change the JWT_SECRET to what you want

Install Dependencies (frontend & backend)

cd backend
npm install
cd frontend
npm install

Run


# Run frontend (:3000) & backend (:4000)
npm start

Build & Deploy

# Create frontend prod build
cd frontend
npm run build