For javascript load json file from desktop, you might wanna check out JSON Server (https://github.com/typicode/json-server).
It’s super lightweight and lets you mock a REST API with your JSON file. Just install it, run it, and you can fetch your data like it’s a real backend.
Also, if you’re using VS Code, the Live Server extension is a lifesaver for this kinda thing. No config needed, just right-click and open with Live Server.
It’s super lightweight and lets you mock a REST API with your JSON file. Just install it, run it, and you can fetch your data like it’s a real backend.
Also, if you’re using VS Code, the Live Server extension is a lifesaver for this kinda thing. No config needed, just right-click and open with Live Server.
