The examples on this folder demonstrate how to run the different packages within a simple HTML page.
- A CIP30 wallet (Nami, Eternl or Lace) installed on the browser.
- Node.js installed on your machine.
Make sure that you have development dependencies installed:
npm install
Then run the following command to start a local server:
npm run serve
The previous command will start a local server on port 1337 and with the latest published libraries. If you want to use the local version instead, run the following command:
npm run build
npm run serve-dev
Then select one of the available examples:
- wallet flow: Simple example on how to use the
@marlowe.io/wallet
package to connect to a wallet extension and get basic info and to manually sign transactions. - Survey workshop: A small excercise to create a Survey Marlowe contract.