Skip to content

wathika-eng/json-server-setup

Repository files navigation

A simple JSON Server Setup

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.

Usage:

On the terminal, run the following commands:

git clone https://github.com/your-username/json-server-setup.git && cd json-server-setup
npm 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

alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published