Step 1: Clone the repository.
Step 2: cd
into the cloned folder | cd demo-api
.
Step 1: npm install
.
Step 2: Create.env
file using the command touch .env
in the root folder.
Step 3: Add API_PORT=3000
inside the .env
that was created.
Step 4: npm run dev
.
Step 4: Go to http://localhost:3000
.
You will be redirected to the docs page of the API.
- To run test , type the command
npm test
- To run test coverage , type the command
npm run test:coverage