create-mainframe-dapp is a bootstrapping tool to streamline the initial setup process for a new dapp. Projects started with create-mainframe-dapp will already include Morpheus UI and Mainframe SDK intergrations, and are structured and configured as needed to be installed in Mainframe OS.
This guide assumes some familiarity with React development.
- Fork the create-mainframe-dapp repo
- Add and Run app to Mainframe OS
Note: If you try to open your new dapp in a standard browser (e.g. Chrome), you will get the following error:
Error: Cannot find expected mainframe client instance. Dapps that integrate with the Mainframe SDK can only be opened in Mainframe OS. See instructions below.
This project contains a react based example dapp. It is configured for development within our electron environment and integrated with the Mainframe SDK out of the box.