Serve a fake customer API as /api/customer/:id with Apache and some PHP.
/srv/http/api/customer/index.php:
<?php
// Simple customer array (simulate a database)
$customers = [| /* ~/Library/Application Support/GIMP/3.1/gimp.css */ | |
| /* | |
| * Tailwind colors | |
| * https://tailwindcolor.com | |
| */ | |
| @define-color stone-0 #0c0a09; | |
| @define-color stone-1 #1c1917; | |
| @define-color stone-2 #292524; | |
| @define-color stone-3 #44403b; |
Drip roasters — Sell some intersting stuff as well.
Expe Coffee (Lausanne)
Ojo De Cafe (Bern)
Roasticious (Founex)
| /** | |
| * Minimal Node.js server with JSON support. | |
| * | |
| * Usage: node server.js | |
| * Client: curl -i -d '{}' 127.0.0.1:8000 | |
| * | |
| * NOTES: | |
| * - `Request` and `Response` classes can be extended. For instance, you can | |
| * extend `Request` to override `json` function in order to raise a | |
| * specific custom error on parsing failure. You'll need then to reconfigure |