Volt Storage Sample: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
# 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.
# Run it. Sign in using your Volt account.
# Run it. Before you can use it, you need to set up a user.
# GetAllItems works for both serverStorage and appStorage.
# From AppStudio, choose '''Manage your Volt App'''. This brings up the '''Dashboard'''.
# From AppStudio, choose '''Manage your Volt App'''. This brings up the '''Dashboard'''.
# In the ''Actions'' section, choose ''Storage''.
# In the ''Actions'' section, choose ''Storage''.
Line 17: Line 16:
# Go back to '''Storage'''.
# Go back to '''Storage'''.
# Sign in as the new user you created.
# Sign in as the new user you created.
# GetAllItems works for both serverStorage and appStorage.
# You can use all the serverStorage buttons: they are your data.
# You can use all the serverStorage buttons: they are your data.
# In appStorage, you can only get data - you can't change it.
# In appStorage, you can only get data - you can't change it.
# Use serverStorage ''setItem'' to set some initial values for your user.
# Use serverStorage ''setItem'' to set some initial values for your user.
# Go back to the '''Dashboard'''. Look at the ''Storage'' for your user. The data is there now.
# Go back to the '''Dashboard'''. Look at the ''Storage'' for your user. The data is there now.

Revision as of 15:48, 6 February 2019

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. Before you can use it, you need to set up a user.
  5. From AppStudio, choose Manage your Volt App. This brings up the Dashboard.
  6. In the Actions section, choose Storage.
  7. You can see the entries in AppStorage.
  8. Load the Volt Users sample and deploy to Volt.
  9. Under AppID, enter the AppID from the Dashboard. (like pYCvbX)
  10. Enter an Email, Password and Confirm Password, then Add User.
  11. Go back to the Dashboard. Under Action, chose Users.
  12. You should see the user you created there.
  13. Choose 'Storage' for the user. A blank screen will appear "No data to display".
  14. Go back to Storage.
  15. Sign in as the new user you created.
  16. GetAllItems works for both serverStorage and appStorage.
  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.