Creating a Linera Project

To create your Linera project, use the linera project new command. The command should be executed outside the linera-protocol folder. It sets up the scaffolding and requisite files:

linera project new my-counter

linera project new bootstraps your project by creating the following key files:

  • Cargo.toml: your project's manifest filled with the necessary dependencies to create an app;
  • src/ the application's ABI definition;
  • src/ the application's state;
  • src/ the application's contract, and the binary target for the contract bytecode;
  • src/ the application's service, and the binary target for the service bytecode.