Skip to main content

Default project template

Beginner
Getting started
Tutorial

Overview

Exploring the default project structure

By default, the project structure will resemble the following:

hello/
├── README.md # Default project documentation
├── node_modules # Libraries for frontend development
├── package-lock.json
├── package.json
├── src # Source files directory
│ ├── hello_backend
│ │ └── Cargo.toml
│ │ └── hello_backend.did
│ │ └── src
│ │ ├── lib.rs
│ ├── hello_frontend
│ ├── assets
│ │ ├── logo.png
│ │ ├── main.css
│ │ └── sample-asset.txt
│ └── src
│ ├── index.html
│ └── index.js
└── webpack.config.js

In this directory, the following files and directories are notable:

  • README.md: The default README file to be used for documenting your project.
  • src/: The source directory that contains all of your dapp's source files.
  • hello_backend: The source directory that contains your dapp's backend code files.
  • hello_frontend: The source directory that contains your dapp's frontend code files.

**Why are there

Next steps

To interact with this code, you first need to deploy the canister. To learn how to deploy to a local developer environment, see the documentation here: