Skip to content
forked from linnovate/dfa

DAML/Distrubuted Flight Approval project

License

Notifications You must be signed in to change notification settings

neriyakesos/dfa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Distrubuted Flight Approval

Usage

Before you can run the application, you need to install the Node package manager for JavaScript and Daml.

There are two steps to build the project.

First, we need to generate TypeScript code bindings for the compiled Daml model.

At the root of the repository, run:

daml build
daml codegen js .daml/dist/create-daml-app-0.1.0.dar -o ui/daml.js

The latter command generates TypeScript packages in the daml.js directory.

Next, navigate to the ui directory and install the dependencies and build the app by running:

cd ui
npm i
npm run-script build

The last step is not absolutely necessary but useful to check that the app compiles.

To start the application, go back do the main directory, start a Daml ledger and start the UI server use:

cd ..
trap killgroup SIGINT # we use this to make sure we can stop the processes
killgroup(){
pkill -f npm
pkill -f daml
pkill -f node
}
daml start & (cd ui; npm start)

This should open a browser window with a login screen.

If it doesn't, you can manually point your browser to http://localhost:3000.

About

DAML/Distrubuted Flight Approval project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 80.6%
  • TypeScript 13.9%
  • HTML 4.8%
  • Other 0.7%