🌱 This repository provides a fake JSON server based on the json-server package. It is used to simulate a product management API for testing purposes with the Prodigy Manager application.
- Fake REST API: Simulates a REST API with endpoints for managing product data (CRUD operations).
- No Configuration Needed: The server runs using the default configuration from
json-server
. - JSON Database: Store product data in a simple JSON file.
- Easy Setup: Quickly set up a local server to test the Prodigy Manager app.
-
Clone this repository:
git clone https://github.com/devddine/prodigy-json-server.git
-
Navigate to the project directory:
cd prodigy-json-server
-
Install the required dependencies:
npm install
-
Start the JSON server:
npx json-server -p 3030 ./json/database.json
-
The server will be running at
http://localhost:3030
. You can now interact with the API and use it for testing the Prodigy Manager application.
Once the server is running, you can:
- Access the product data via
http://localhost:3030/products
. - Use the endpoints to GET, POST, PUT, and DELETE product data.
To use this fake JSON server with Prodigy Manager:
- Clone the Prodigy Manager repository.
- Follow the instructions in the Prodigy Manager README to set up the app.
- Make sure the Prodigy Manager app points to
http://localhost:3030
for API requests.
Feel free to contribute by submitting issues or pull requests. Your contributions are always welcome!
This project is open-source and available under the MIT License. See the LICENSE file for more information.