Then create a .env file inside of api directory and paste the following code with updated MongoDB URL and JWT secret key.
MONGO_URL = "your-mongo-url"
JWT_SECRET = "jwt-secret-key"
CLIENT_URL = "http://localhost:5173"
cd api
yarn install
npx nodemon index.api
cd client
yarn install
yarn dev