I am here on my window machine → F:\code\JSProjects\json\server
and node.js is successfully installed on my window machine Now I have to create a JSON server on the local machine at the above path with db.json then what process should I follow on the window.
Thank you so much. Please bear with me. If we can create any random db.JSON file(with random sample data) then what is the need of creating and depending on a server because JSOn will be accessed by Javascript, which unlike server-side language such as PHP doesn’t require a WAMP or any other local or live servers?
I will give some time to understand as I am confused because I am new to this, but for now, if you can answer one thing. Once the database db.json is set in a folder w/o node.js affairs wtill JS program still access it or not?
Okies, but I have a question there was no node.js server installed, but I tried XHR and fetch and was able to read “Hello World” from a some.txt file on local machine through JS?
Does that mean .JSON extensions require server requirement, but .txt doesn’t require server?
You could give me your ip address and I couldn’t read anything from your computer. A server is required to achieve that. You are safe from others being able to do that.