Skip to content

Commit

Permalink
update: samples overview (#3806)
Browse files Browse the repository at this point in the history
* Update overview.mdx

* Update docs/samples/overview.mdx

Co-authored-by: Marco Walz <[email protected]>

* Update overview.mdx

---------

Co-authored-by: Marco Walz <[email protected]>
  • Loading branch information
jessiemongeon1 and marc0olo authored Nov 22, 2024
1 parent 1dc1771 commit 2db8632
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions docs/samples/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Take a look at some sample dapps below and see the possibilities of building on
## Hello, world!

The dapp equivalent of 'Hello, World!' with a separate backend and frontend canister serving a web page.
- [Motoko](https://github.com/dfinity/examples/tree/master/motoko/hello).
- [Rust](https://github.com/dfinity/examples/tree/master/rust/hello).
- [Motoko](https://github.com/dfinity/icp-hello-world-motoko).
- [Rust](https://github.com/dfinity/icp-hello-world-rust).
- [See a running example](https://6lqbm-ryaaa-aaaai-qibsa-cai.ic0.app/).

## Developer ladder series
Expand Down Expand Up @@ -104,16 +104,9 @@ This tutorial shows how to quickly set up a static website structure, add conten

The example shows how to deploy a web game on ICP, sample code can be found at [samples repo](https://github.com/dfinity/examples/tree/master/hosting).

## Token approve and transfer from

This sample code demonstrates how a canister can be approved to transfer funds on behalf of a user.
- [Motoko](https://github.com/dfinity/examples/tree/master/motoko/token_transfer_from).
- [Rust](https://github.com/dfinity/examples/tree/master/rust/token_transfer_from).

## ICP transfer

This sample code demonstrates how a canister can hold and transfer ICP tokens.
- [Motoko](https://github.com/dfinity/examples/tree/master/motoko/icp_transfer).
- [Rust](https://github.com/dfinity/examples/tree/master/rust/icp_transfer).

## ICRC-2 token swap
Expand All @@ -124,10 +117,6 @@ This sample code demonstrates how a canister can hold and transfer ICP tokens.

- [Motoko](https://github.com/dfinity/examples/tree/master/motoko/internet_identity_integration).

## Invoice canister

- [Motoko](https://github.com/dfinity/examples/tree/master/motoko/invoice-canister).

## Minimal counter dapp

The example dapp shows how to build a very basic dapp with both backend and frontend, using Motoko for the backend functionality and plain HTML and JavaScript for the frontend. The dapp is a simple counter, which will increment a counter by clicking a button in the frontend.
Expand All @@ -145,7 +134,7 @@ This is an NFT wallet example dapp that utilizes minted NFTs from the Rust dip72

- [Rust](https://github.com/dfinity/examples/tree/master/rust/nft-wallet).

## Paralell calls
## Parallel calls

- [Motoko](https://github.com/dfinity/examples/tree/master/motoko/parallel_calls).
- [Rust](https://github.com/dfinity/examples/tree/master/rust/parallel_calls).
Expand Down Expand Up @@ -211,8 +200,9 @@ This example is a simple CRUD dapp.
- [Motoko](https://github.com/dfinity/examples/tree/master/motoko/token_transfer).
- [Rust](https://github.com/dfinity/examples/tree/master/rust/token_transfer).

## Token transfer_from
## Token approve and transfer from

This sample code demonstrates how a canister can be approved to transfer funds on behalf of a user.
- [Motoko](https://github.com/dfinity/examples/tree/master/motoko/token_transfer_from).
- [Rust](https://github.com/dfinity/examples/tree/master/rust/token_transfer_from).

Expand Down

0 comments on commit 2db8632

Please sign in to comment.