For more information about the the Demo database, see Business Logic API Project Sample.
In this article:
- Unzip it into a folder that does not include spaces in the path.Do not run the files from the zip.
Match your Server Location and Authentication Token
DemoAPI sample to match your server location and authentication token. When you create your API (in this example,
Demo), API Creator generates a default authentication token.
The following image shows the
demo_fullkey in the
Follow these steps:
- Open theWebContent/js/LogicDemo.jsfile in a text editor.
- Update theec2baseUrl, specifying your account/project. The following example shows the settings for accountvalJune18,using the pre-installed demo project (ItsurlNameis obtained.)For more information about theurlName, see The API Project URL.
- Update thecurrentApiKey. The following image shows the contents of theLogicDemo.jsfile:
- Save your changes.
The server location and authentication token are matched.
Run the Application
Run the application directly from the file system. Double-click
WebContent/index.html. The application runs in your browser.
The following image illustrates how the app should look:
Explore the various use cases, such as changing line items and adding orders. Changes are immediate; you do not have to save. Changes are detailed as transaction logs in the Logic Execution Plan pane. The same log displays in your log screen.
For more information about logs and the log screen, including how to debug applications, see View Logging Information.