A minimal setup for quickly starting a mock JSON API server using json-server. This project allows developers to test frontend applications or prototype API interactions with minimal backend setup.
- Simple, customizable JSON API
- Quick setup for prototyping and testing
- Uses
json-serverto simulate a full REST API
- Node.js and npm
- Clone the repository:
git clone https://github.com/deanvons/json-server-starter.git
- Navigate to the directory:
cd json-server-starter - Install dependencies:
npm install
Start the server:
npm startAccess the API at http://localhost:3000/collection-name (books etc)
Access the images http://localhost:3000/assets/image-name.png
To customizing the data simply edit db.json to customize the API data structure.
Supports CRUD HTTP
Contributing Feel free to open issues and submit pull requests.
Will discuss in class
License This project is open-source.