npm install json-server
{ "cars": [ { "id": "97ea", "brand": "minicupper", "model": "Sport", "year": "2024", "color": "red", "price": "20000" } ] }
npx json-server db.json
Index: http://localhost:3000/
Static files: Serving ./public directory if it exists
Endpoints: http://localhost:3000/cars
<script src="https://cdn.jsdelivr.net/npm/axios@1.6.7/dist/axios.min.js"></script>
Get-Read Put-Update Post-Add new Delete-Delete