How to run this backend project in a local host.

  • download this git repo on the local machine
  • Open your project terminal and write npm install
  • Create a .env file in root folder
  • open .env file write PORT= your port number example: PORT = 5000 and write **DATABASE_URL = ** your MongoDB URL example: DATABASE_URL = mongodb://localhost:restuwahyu13:restuwahyu13:27017/pattern
  • Go to the project terminal npm run start
Enjoy the E-commerce backend API