Engineer, on 17 August 2013 - 05:37 PM, said:
I didnt really read through the replies on this post, but as you know you need to design a website anyway. You could possibly make it like that, that you can bind programs to an account. It really helps but can be iffy. First of all because we would need to refresh the page if we uploaded something, because I dont think you can save it in a database and get it in the runtime withoit refreshing.
However, I want to note that this comes from a unexperienced javascript coder, I have no idea if you can fetch files from a database with JS.
Writing the fs API would be annoying. There are a couple of options: store the files in the database, and just upload the changed files to a database every 30 seconds or so asynchronously, which would be a lot of annoying work to protect against spammers; store the files in HTML5 localStorage, which has a max size of 5MB, so you could only open 2 - 3 computers; store the files in memory, and have them not persist across sessions, or have the user download a single data file, which they could then supply to the website upon reload or something; upload the files to the database at the end of the session, or have a manual save function that saves the session to a database.
Also as far as editing files, we would probably include an ace editor in browser so you can easily modify and copy/paste into it, and allow you to save files to any of the computers.