Home > front end >  Running one web page across devices with the same data
Running one web page across devices with the same data

Time:02-07

I want to make a simple todo list web page for myself so that I can be a more organized person but I have a problem. I want to be able to close the website or switch to another computer and still keep the data of what I have done or not done on this to do list. I have tried to search up ways that I could do this online but I don't know what to search to find the right results.

I know about js and web design stuff but I don't know any back end stuff so.

CodePudding user response:

One way to do this is to upload your code to Github, which is a code management application for developers. Try searching on youtube how to navigate through GitHub and how to upload your code because im not that good with explanations just yet since im a beginner. Once your code has been uploaded, you can simply log into GitHub with the other device and open your code in a code base.

CodePudding user response:

You need to have some kind of backend for what you are planing to accomplish. Such a backend could be a database storing each of your to-dos on a single database row, or some sort of file, which is located on a central server (the file could for example be a .json, .xml or .csv).

However, you can also write a JavaScript app, that stores your to-dos in your local browser storage, but then you would have to implement an export, import logic for a manual sync.

I assume that is not what you are looking for, so I would suggest checking out some services like for example the Google Drive API. You can interact with JavaScript with it and store your to-dos in your Google account: https://developers.google.com/drive/api/v3/quickstart/js

  •  Tags:  
  • Related