Install the dependencies by running the following command:
- Using npm
npm i
- Using Yarn
yarn
To run the server, use the following command in the terminal:
- Using npm:
npm run dev
- Using yarn:
yarn dev
After running the command, the server starts up on the port: 5000
-
/login
: First, login using any email and password to get a token. Copy that token for further usage. -
/cart , /checkout
: For using these routes, paste the token with the prefixBearer
and a space " " between them.
Example:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoidXNlciIsImVtYWlsIjoidXNlckBlbWFpbC5jb20iLCJwYXNzd29yZCI6IjEyMzQiLCJpYXQiOjE2NDE3OTM0MTV9.bKR8KZTFYW65yqeFycvc9avHGaI9ct8P5JtdBFuB3fA