Volt Storage Sample: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
AppStudio includes a sample demonstrating how | AppStudio includes a sample demonstrating how VoltServer Storage can be used. Here's a step by step guide for running the sample. | ||
# Load ''' | # Load '''VoltServer Storage''' sample. | ||
# Set | # Set VoltServer ''AppId'' to blank and ''Dashboard Access'' to false. | ||
# Deploy to | # Deploy to VoltServer. | ||
# 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 | # 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 | # 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. |
Latest revision as of 15:10, 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.
- Load VoltServer Storage sample.
- Set VoltServer AppId to blank and Dashboard Access to false.
- Deploy to VoltServer.
- 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 VoltServer.
- 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.
- GetAllItems works for both serverStorage and appStorage.
- 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.
- From AppStudio, choose Manage your VoltServer App. This brings up the Dashboard.
- In the Actions section, choose Storage.
- You can see the entries in AppStorage.