This project is a simple backend setup using json-server to create a fake REST API. It's ideal for prototyping or testing front-end applications without needing a full back-end infrastructure.
With json-server, you can quickly create a fully functional API that responds to typical HTTP requests like GET, POST, PUT, and DELETE. This setup simulates real API responses using a JSON file as the database.
- Quick Setup: No need to write server logic; the API is automatically generated from a JSON file.
- RESTful API: Supports GET, POST, PUT, PATCH, DELETE.
- Zero Configuration: All you need is a single JSON file to represent your database.
-
Clone the repository or download the project.
-
Ensure you have Node.js installed. If not, download Node.js here.
-
Install
json-serverglobally by running the following command:npm install -g json-server