Volt Storage Sample

From NSB App Studio
Revision as of 12:08, 29 January 2019 by Ghenne (talk | contribs) (Created page with "AppStudio includes a sample demonstrating how Volt Storage can be used. Here's a step by step guide for running the sample. # Load '''Volt Storage''' sample. # Set Volt ''App...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

AppStudio includes a sample demonstrating how Volt Storage can be used. Here's a step by step guide for running the sample.

  1. Load Volt Storage sample.
  2. Set Volt AppId to blank and Dashboard Access to false.
  3. Deploy to Volt.
  4. Run it. Sign in using your Volt account.
  5. GetAllItems works for both serverStorage and appStorage.
  6. From AppStudio, choose Manage your Volt App. This brings up the Dashboard.
  7. In the Actions section, choose Storage.
  8. You can see the entries in AppStorage.
  9. Load the Volt Users sample and deploy to Volt.
  10. Under AppID, enter the AppID from the Dashboard. (like pYCvbX)
  11. Enter an Email, Password and Confirm Password, then Add User.
  12. Go back to the Dashboard. Under Action, chose Users.
  13. You should see the user you created there.
  14. Choose 'Storage' for the user. A blank screen will appear "No data to display".
  15. Go back to Storage.
  16. Sign in as the new user you created.
  17. You can use all the serverStorage buttons: they are your data.
  18. In appStorage, you can only get data - you can't change it.
  19. Use serverStorage setItem to set some initial values for your user.
  20. Go back to the Dashboard. Look at the Storage for your user. The data is there now.