Introduction to developing canisters in Motoko
Tutorials and guides
The 1.1: Exploring a live demo developer journey tutorial provides a simplified introduction to the basic work flow for creating and deploying a new project without exploring the contents of the project directory or sample code.
Next, you’ll explore writing a few simple Motoko programs to give you hands-on experience creating programs that run on the IC.
These guides illustrate how to write dapps using the Motoko programming language. For additional examples of dapps written in other languages, see the DFINITY examples repository.
The following guides introduce the basics for writing dapps that run on the IC:
Getting started with Motoko
Explore the default project takes a closer look at the work flow for creating projects by exploring the default files and folders that are added to your workspace when you create a new project.
Import library modules illustrates how to import and use a few basic Motoko base library functions for working with key-value pairs in a list.
Use integers in calculator functions shows you how to write a simple calculator dapp for more practice working with Motoko and to learn more about how you can customize your project environment.
Increment a natural number guides you through the process of writing a dapp that creates an actor with functions to increment and return the value of a counter.
Pass text arguments introduces different ways you can pass arguments to a function using the command-line in a terminal shell.
Accept cycles from a wallet illustrates how to accept cycles sent from the default wallet canister.
Query using an actor highlights how to replace the typical
Use multiple actors describes how to include multiple unrelated actors in a single project to illustrate how you can compile multiple canisters for the same project.
Add access control with identities describes how to create and switch between multiple user identities.
Make inter-canister calls illustrates how to make simple calls to functions defined in one canister from another canister in the same project.
Create scalable apps describes using multiple canisters to create applications that scale.
Add a stylesheet illustrates how to add a stylesheet when you use React to create a new frontend for your project. If you already know how to add stylesheets to React, you can skip this tutorial.