got to the main folder of the project where it contains client and server
cd server
npm install
cd ..
cd client
npm install
cd ..
PORT=8000
MONGO_URL="Your_mongo_url/mern" # make database called mern and collections of posts, users, tickets in mongodb ex mongodb:localhost:201322/mern
JWT_SECRET="your_jwt_secret" # you can generate this in base 64 or just add random values
When all it's setted up enter this:
cd client
npm run dev
cd ..
cd server
npx nodemon index.js