Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 925 Bytes

File metadata and controls

42 lines (27 loc) · 925 Bytes

Sales Exec API Mock

Mock REST API returning sales executive data with pagination, sorting, and filtering.

A dummy REST API built using Node.js, Express, and Faker to simulate sales executive data for testing and front-end assignments.

Features

  • Pagination (page, limit)
  • Sorting (sort_by, order)
  • Filtering (status, location)

How to Use

1. Install dependencies

npm install

2. Start the server

npm start

3. Sample API calls

Replace localhost with your backend deployed url - after deploying React Front End

http://localhost:4000/api/sales-executives
http://localhost:4000/api/sales-executives?page=2&limit=20
http://localhost:4000/api/sales-executives?status=Active&sort_by=progress_percentage&order=desc

Deployment

You can deploy this app on platforms like Render or Railway. Just set:

  • Build command: npm install
  • Start command: npm start