This file sets up a lightweight REST API using json-server. It reads data from a db.json file and serves it over HTTP. Perfect for prototyping, testing, or mocking APIs.
On the terminal, run the following commands:
git clone https://github.com/your-username/json-server-setup.git && cd json-server-setupnpm install Start the server with: npm run start jsonfile port
npm run dev db.json 5000
# or
npm run start db.json 5000
#or
./index.js db.json 5000