Bring Your Own Stack (BYOS)
Does
domo init not give you enough of what you’re used to for starting new projects If you have a generator or starter kit you’re partial to, you can still use it. All you have to do is update your local development server to handle requests for data from Domo. Here are a few examples of how you can leverage the ryuu-proxy module to turn any existing web application into a Domo App.
- React
- Angular
- Vue
Advanced React Template
Domo also has a more advanced template available that Domo teams use when building apps. Contact your Account Executive for more information on how to obtain access to the Advanced App Platform Package.
Basic Create React App
DomoApps has a basic create-react-app template that can be installed that includes all the Domo-specific dependencies and configurations. Follow the instructions from the create-react-app documentation to install a new react app with the@domoinc/cra-template template based on the package manager of your choice (npx, yarn, or npm).Replace the word my-app in the following commands with the app name of your choice.yarn
yarn create react-app my-app --template @domoinc
npx
npx create-react-app my-app --template @domoinc
npm
npm init react-app my-app -- --template @domoincThese commands will create your project in a my-app folder with the following included:- The manifest and thumbnail are provided in the
publicfolder. - The proxy server is setup with
@domoinc/ryuu-proxyfor local development to your domo instance. - An upload script has been added to the package.json for easy upload.
Upload and configure
- Use the domoapps cli to login to your Domo instance with
domo login - Upload the boilerplate app to your Domo instance using
yarn uploadornpm run upload- The project will build, add all assets to the
buildfolder, and then upload the assets to Domo - The
manifest.jsonfile in thebuildfolder will be modified by the domoapps cli to include anidproperty—you will want to copy thisidinto the manifest in yourpublicfolder so that it doesn’t continue to create a newidon each upload
- The project will build, add all assets to the
- If you intend to use endpoints provided by the App Platform (e.g. datasets, AppDB, etc), make sure to also add a
proxyIdto themanifest.jsonfile in yourpublicfolder. See proxy documentation for more info.
Local Development
Run theyarn start (or npm start) command (after you’ve uploaded your app at least once) to start developing locally.