| Field | +Actions | +
|---|
Connect to the server to get started
+ Enter a server URL above and click Connect +diff --git a/README.md b/README.md index 1f506d1..dce4f0a 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,36 @@ Write a TypeScript interface, get a fully working REST API with realistic mock d --- +## π₯οΈ Try the Demo + +The repo includes a ready-to-use demo with sample types and a frontend UI. + +**1 β Install dependencies** (first time only) + +```bash +npm install +``` + +**2 β Start the server** + +```bash +npm start +``` + +This uses `.mock-config.json` at the root, which points to `demo/types/` on port `3000`. + +**3 β Open the frontend** + +Open `demo/index.html` directly in your browser (no server needed for the UI itself): + +``` +demo/index.html β open this file in your browser +``` + +Then click **Connect** β the UI will automatically discover the available types (`User`, `Product`, `Order`) and let you browse, filter, create, edit, and delete mock data. + +--- + ## β‘ Quick Start ### 1 β Install diff --git a/demo/index.html b/demo/index.html new file mode 100644 index 0000000..6ffb537 --- /dev/null +++ b/demo/index.html @@ -0,0 +1,1520 @@ + + +
+ + +| Field | +Actions | +
|---|
Connect to the server to get started
+ Enter a server URL above and click Connect +