Skip to content

zntb/mern-support-desk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Set Environment Variables

Rename the .envexample to .env and add your MongoDB database URI and your JWT secret

Install backend dependencies

npm install

Create React app

npx create-react-app@latest frontend --template redux

If you don't want the browser to open when the React app starts:

.env

BROWSER=none

package.json

"start": "react-scripts start --BROWSER=none"

Install client dependencies

cd frontend
npm install

Run app in development (frontend & backend)

npm run dev

Install React packages

npm i react-router-dom react-icons react-toastify react-modal axios