Difference between revisions of "Volt Storage Sample"

From NSB App Studio
Jump to navigation Jump to search
Line 5: Line 5:
 
# Deploy to Volt.
 
# Deploy to Volt.
 
# Run it. Before you sign in, you need to set up a user. We'll do this in a later step.
 
# Run it. Before you sign in, you need to set up a user. We'll do this in a later step.
# Load the '''Volt Users''' sample and deploy to Volt.
+
# Load the '''Volt Users''' sample and deploy to VoltServer.
 
# Under ''AppID'', enter the AppID from the Dashboard. (like pYCvbX)
 
# Under ''AppID'', enter the AppID from the Dashboard. (like pYCvbX)
 
# Enter an ''Email'', ''Password'' and ''Confirm Password'', then ''Add User''.
 
# Enter an ''Email'', ''Password'' and ''Confirm Password'', then ''Add User''.
Line 17: Line 17:
 
# 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.
# From AppStudio, choose '''Manage your Volt App'''. This brings up the '''Dashboard'''.
+
# From AppStudio, choose '''Manage your VoltServer App'''. This brings up the '''Dashboard'''.
 
# In the ''Actions'' section, choose ''Storage''.
 
# In the ''Actions'' section, choose ''Storage''.
 
# You can see the entries in AppStorage.
 
# You can see the entries in AppStorage.

Revision as of 15:09, 25 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 VoltServer.
  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 VoltServer App. This brings up the Dashboard.
  18. In the Actions section, choose Storage.
  19. You can see the entries in AppStorage.