Volt Storage Sample: Difference between revisions
Jump to navigation
Jump to search
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..." |
No edit summary |
||
Line 6: | Line 6: | ||
# Run it. Sign in using your Volt account. | # Run it. Sign in using your Volt account. | ||
# GetAllItems works for both serverStorage and appStorage. | # 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''. | ||
# You can see the entries in AppStorage. | # You can see the entries in AppStorage. | ||
Line 12: | Line 12: | ||
# 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''. | ||
# Go back to the Dashboard. Under ''Action'', chose ''Users''. | # Go back to the '''Dashboard'''. Under ''Action'', chose ''Users''. | ||
# You should see the user you created there. | # You should see the user you created there. | ||
# Choose 'Storage' for the user. A blank screen will appear "No data to display". | # Choose 'Storage' for the user. A blank screen will appear "No data to display". | ||
Line 20: | Line 20: | ||
# 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 12:09, 29 January 2019
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 AppId to blank and Dashboard Access to false.
- Deploy to Volt.
- Run it. Sign in using your Volt account.
- GetAllItems works for both serverStorage and appStorage.
- From AppStudio, choose Manage your Volt App. This brings up the Dashboard.
- In the Actions section, choose Storage.
- You can see the entries in AppStorage.
- Load the Volt Users sample and deploy to Volt.
- Under AppID, enter the AppID from the Dashboard. (like pYCvbX)
- Enter an Email, Password and Confirm Password, then Add User.
- Go back to the Dashboard. Under Action, chose Users.
- You should see the user you created there.
- Choose 'Storage' for the user. A blank screen will appear "No data to display".
- Go back to Storage.
- Sign in as the new user you created.
- You can use all the serverStorage buttons: they are your data.
- In appStorage, you can only get data - you can't change it.
- 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.