No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Save object to a local file.

    Help
    1
    1
    559
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      Oxar last edited by

      Hi.
      I would like to know if the following is possible with Quasar/Vue.
      I have a form that creates an object, objF, which needs to be reused for testing purposes.
      I am currently using local storage to save/retrieve this object.
      Ideally, though, I would like to save this object in a file for reuse in testing purposes.
      So in the statics folder, I created a file ‘testSav.json’
      import testSav from 'src/statics/testSav.json'
      How would I read and write to this file?
      I am working on a local server ‘http://localhost:8080/’
      I also tried using axios but haven’t been able to make much progress. Is Axios an alternative?
      I plan to eventually move this file to a backend server but need it locally for general debugging/testing purposes.

      Thanks,

      1 Reply Last reply Reply Quote 0
      • First post
        Last post