Single Page Application Samples
Sample SuiteApp projects that use single page applications (SPA) are available in the SuiteCloud Project Repository on Oracle Samples GitHub (see spa-suiteapp-samples).
These samples use the SPA SuiteApp project template and contain a file (gulpfile
) that implements the build and bundle steps to convert the source files. For information about the project structure for SuiteApps with SPAs, see Components and Structure of Single Page Applications.
You can find the following sample SPA SuiteApps in the repository:
-
Airport 360 – Sample 360-type SuiteApp that demonstrates the use of various NetSuite UI Framework (UIF) features such as routing, side menu, state management, asynchronous loading, and SuiteScript APIs.
-
Basics Routing – Demonstrates the basic principles of routing.
-
Basics State Management – Demonstrates the basic principles of state management.
-
Hello World JS – Minimal Hello World application written in JavaScript.
-
Hello World TS – Minimal Hello World application written in TypeScript.
-
Item 360 – Sample 360-type SuiteApp that demonstrates common SPA patterns and data handling using SuiteScript.