run command npm install (npm i) in the main directory where package.json exists
Create a environment file (.env) and add the following details
PORT=4000
LOCAL_DB= ex: mongodb://localhost/globalSearch
MONGODB_URI= ex: mongodb+srv://:@cluster0.xxxx.mongodb.net/globalSearch?retryWrites=true&w=majority
Change the variable URI in server.js file according to database type you want to use
start server by running command - node server.js / nodemon server.js