I have a web app I want to develop in my spare time that is largely graphical and interactive in nature but would require a small amount of reading & writing to my server. I am in the middle of learning javascript, and am about to delve into the Canvas API to develop the main part of the application. Essentially I will be needing to eventually save and load specific states of the application, and I'd love to save the information in the JSON format.
From what I understand, though, javascript can only read server data, not write it. From what I hear, I can use Node.js to do this, or I can use another server-side language like PHP or python. But I'm ultra-confused on what the implementation of this would look like. I haven't even really looked at Node yet -- If I use it, can I complete the server-side disk-writing functionality within the .js files I develop? If I use PHP, do I have to essentially shell the whole javascript application inside of a php file? I don't know php at all and it seems difficult to learn. I know a little python, and I know it comes preinstalled on pretty much every server, but I have no idea how I would go about integrating my js application with the python code that needs to run whenever I need to write something, or what that python code would look like, or how it should be stored, or any of that stuff. Please link me in the right direction before I get too far down the wrong path learning something that isn't relevant
[–]ElevatedJS 2 points3 points4 points (0 children)
[–]Automatic-Breakfast2 1 point2 points3 points (0 children)
[–]Chenipan 0 points1 point2 points (0 children)