Understand Holochain App Code

Understand Holochain App Code

When you use the scaffolding tool to generate your sample project, it will create a new directory with the app name in the current directory. Inside that new directory there’s a number of files and directories:

The generated file structure is the recommended layout for hApps.

├── Cargo.toml
├── flake.nix
├── flake.lock
├── dnas
│ └── forum
│ ├── workdir
│ │ └── dna.yaml
│ └── zomes
│ ├── coordinator
│ │ └── posts
│ │ ├── Cargo.toml
│ │ └── src
│ │ ├── all_posts.rs
│ │ ├── comment.rs
│ │ ├── lib.rs
│ │ └── post.rs
│ └── integrity
│ └── posts
│ ├── Cargo.toml
│ └── src
│ ├── comment.rs
│ ├── lib.rs
│ └── post.rs
├── nix
│ ├── sources.json
│ └── sources.nix
├── package.json
├── README.md
├── tests
│ ├── package.json
│ ├── src
│ │ └── forum
│ │ └── posts
│ │ ├── comment.test.ts
│ │ └── post.test.ts
│ └── tsconfig.json
├── ui
│ ├── index.html
│ ├── package.json
│ ├── src
│ │ ├── App.vue
│ │ ├── forum
│ │ │ └── posts
│ │ │ ├── AllPosts.vue
│ │ │ ├── CommentDetail.vue
│ │ │ ├── CommentsForPost.vue
│ │ │ ├── CreateComment.vue
│ │ │ ├── CreatePost.vue
│ │ │ ├── EditPost.vue
│ │ │ ├── PostDetail.vue
│ │ │ └── types.ts
│ │ ├── main.ts
│ │ ├── style.css
│ │ └── vite-env.d.ts
│ ├── tsconfig.json
│ └── vite.config.ts
└── workdir
├── happ.yaml
└── web-happ.yaml

20 directories, 43 files

You can enter the Holonix dev shell and immediately start developing your hApp.

It looks like you are using Internet Explorer. While the basic content is available, this is no longer a supported browser by the manufacturer, and no attention is being given to having IE work well here.