paluh / marlowe-runner

A simple app which allows you to deploy and progress through Marlowe contract on Cardano.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Marlowe Runner

A simple web app which allows you to deploy and progress through Marlowe contracts on Cardano easily from the browser.

Installation

Prerequisites

Ensure you have nix installed on your system and an instance of the Marlowe Runtime's Webserver running pointed to the desired Cardano network.

Setup

Enter the development shell:

nix develop

Install the necessary dependencies:

npm install

Run the tests:

spago test

Running

To start the server you can use the npm run start command, for example:

MARLOWE_WEB_SERVER_URL="http://localhost:3780" npm run start

In the previous example:

  • MARLOWE_WEB_SERVER_URL: Specifies URL for the Marlowe Runtime Web server.

After this, the Marlowe Runner instance should be available by default at: http://localhost:8080/

Troubleshooting

Ensure that:

  • The protocol (http or https) is correct.
  • There's no extra / at the end of the URL.

If you get a blank page when opening Marlowe Runner in your browser, it may be necessary that you install a light wallet like Nami.

Contributing

Before contributing, please format the source code using the following command from within the nix development shell:

purs-tidy --format-in-place src/**/*.purs

About

A simple app which allows you to deploy and progress through Marlowe contract on Cardano.

License:Apache License 2.0


Languages

Language:PureScript 84.1%Language:TypeScript 6.6%Language:JavaScript 4.1%Language:Dhall 2.6%Language:SCSS 1.9%Language:Nix 0.4%Language:HTML 0.3%