Skip to content

Examples

The demo is the Hello World template running as is. Open your browser’s developer tools to see the modules and layout files it loads: there is no bundle.

Every template of npx jops-core init is a complete, working project you can read, run and change. Create one in an empty folder:

Terminal window
npm init -y
npm install jops-core
npx jops-core init
Template Shows
1. Empty The smallest app: an App.js entry point and one root layout.
2. Hello World A header and footer, a Router with five routes and a slide animation, views that add sub-views in code (Features.js, DataSection.js), a view with an HTML layout file and a bound form submit that writes to the Store (Form.js), styles and images.
3. Next.js JOPS Embedded SPA A Next.js app with a React-only page and a page hosting a JOPS SPA: a Router with a login screen and a quotes list with status filters, loading data from a Next.js Route Handler.
4. Electron JOPS Desktop App An Electron Forge app whose UI is a JOPS SPA: a sidebar, a Router in screens mode, and two calls to the main process through the preload bridge.

The templates are also in the public repository on GitHub.