PranavGPR / node-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node.js machine test

1. Install Dependencies:

Install the dependencies by running the following command:

  1. Using npm
npm i
  1. Using Yarn
yarn

2. Run server:

To run the server, use the following command in the terminal:

  1. Using npm:
npm run dev
  1. Using yarn:
yarn dev

After running the command, the server starts up on the port: 5000

3. Usage:

  1. /login : First, login using any email and password to get a token. Copy that token for further usage.

  2. /cart , /checkout : For using these routes, paste the token with the prefix Bearer and a space " " between them.
    Example: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoidXNlciIsImVtYWlsIjoidXNlckBlbWFpbC5jb20iLCJwYXNzd29yZCI6IjEyMzQiLCJpYXQiOjE2NDE3OTM0MTV9.bKR8KZTFYW65yqeFycvc9avHGaI9ct8P5JtdBFuB3fA

About


Languages

Language:JavaScript 100.0%