JSON-Server una API REST para pruebas en solo minutos
blessedc0de
https://github.com/typicode/json-server https://replit.com/@nullx5/json-server-api#index.js
COMANDOS: mkdir json-server; cd json-server sudo apt install nodejs npm -y nodejs --version npm --version npm init -y npm install json-server wget https://edube.org/uploads/media/default/0001/01/e845c414d155078681778a99015e9fcff1f0c84d.zip 7z x e845c414d155078681778a99015e9fcff1f0c84d.zip ls sudo -Es nvim package.json "scripts": { "server": "json-server --host 0.0.0.0 --watch cars.json" }
ip -c a
npm run server http://192.168.100.112:3000 http://192.168.100.112:3000/cars
http://192.168.100.112:3000/cars?_sort=production_year http://192.168.100.112:3000/cars?_sort=production_year&_order=desc ... https://www.youtube.com/watch?v=Y4sx5xEZkYQ
17278667 Bytes