Question:
I have a daml app, where there are several daml projects linked together. Where would I place the start script, and how do I start the script? (root level?) I’m trying to allocate parties at the start in my local dev env, since pre-allocating parties is necessary now in sdk 2.x.
In the docs, daml start
is required to used to compile Daml code to dar, generate JS library, starts sandbox, and starts server.
However, since I have separate daml projects, the way I start everything separately and not via daml start
. I also build the dar files, and run daml codedgen separately.
- start sandbox with
daml sandbox --ledgerid wallet-refapp-sandbox main/Asset/asset.dar main/User/user.dar main/Account/account.dar
Start server with
daml json-api --ledger-host localhost --ledger-port 6865 --http-port 7575
Question
At what point, and how do I run the start script ?
From the create-daml-app
template, there is single daml project, the repo structure looks like
/daml
Setup.daml (setup script)
User.daml
/ui
.dlint.yaml
daml.yaml (root level yaml file, where init-script: Setup:setup is)
And we just run daml start
, and the script runs.