Volt Storage Sample: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
AppStudio includes a sample demonstrating how Volt Storage can be used. Here's a step by step guide for running the sample.
AppStudio includes a sample demonstrating how VoltServer Storage can be used. Here's a step by step guide for running the sample.


# Load '''Volt Storage''' sample.
# Load '''VoltServer Storage''' sample.
# Set Volt ''AppId'' to blank and ''Dashboard Access'' to false.
# Set Volt ''AppId'' to blank and ''Dashboard Access'' to false.
# Deploy to Volt.
# Deploy to Volt.

Revision as of 19:47, 24 February 2021

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

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