Run your App
This page explains how to run your application locally.
Amazing, we have written the code we need to compile a HelloWorld
resource object and can create a transaction to initialize our HelloWorld
resource. Let's run through these steps by starting with the setup of the local Anoma Client and Node.
Anoma Client and Node
The following way of running the Anoma Client and Node are temporary and thus, Work-In-Progress areas which are specific to the current stage of devnet.
First and foremost, we need a local version of the artem/juvix-node-integration-v0.28
branch of Anoma's codebase, install its dependencies, and compile the code. For a detailed description on how to do these steps, please follow this README.
The recommended branch will soon change to testnet-01
, once integrations have been merged.
Assuming you have successfully compiled the Anoma codebase, you can use the following start-config.exs
and makefile
to start the Anoma Client and Anoma Node.
First, copy the following code into a file you call start-config.exs
at your project root:
Now, copy the following code into a makefile
, again at your project root.
Open a new terminal in your project root:
Calling the Transaction Function
Now, once the Anoma Client and Node have started in your first terminal which you will keep open, we want to call our transaction function. We do so by opening a new terminal and running the following makefile
command:
The above command will trigger our code to compile and get proved.
🎉 Congrats! You have successfully built and deployed your first Resource Object. We will soon add more functionality, e.g. to index your Resource and make use of custom Projection functions.
Last updated