|
1 | 1 | # Motoko examples
|
2 | 2 |
|
3 |
| -## Standalone Motoko |
| 3 | +These examples demonstrate the use of Motoko as a backend language on the ICP platform. |
4 | 4 |
|
5 |
| -These examples show the Motoko language as a backend language for the IC, operating directly with clients, without a front end component. |
| 5 | +## Security considerations and security best practices |
6 | 6 |
|
7 |
| -### Basic |
8 |
| - |
9 |
| -- [`counter`](https://github.com/dfinity/examples/tree/master/motoko/counter) -- basic (stable) variable demo. |
10 |
| -- [`hello_cycles`](https://github.com/dfinity/examples/tree/master/motoko/hello_cycles) -- basic cycles demo. |
11 |
| -- [`who_am_i`](https://github.com/dfinity/examples/tree/master/motoko/who_am_i) -- basic caller identification demo. |
12 |
| - |
13 |
| -### Intermediate |
14 |
| - |
15 |
| -- [`classes`](https://github.com/dfinity/examples/tree/master/motoko/classes) -- dynamic actor (class) instantiation. |
16 |
| -- [`pub-sub`](https://github.com/dfinity/examples/tree/master/motoko/pub-sub) -- multiple canisters, with publisher-subscriber inter-canister calls. |
17 |
| -- [`icrc2-swap`](https://github.com/dfinity/examples/tree/master/motoko/icrc2-swap) -- deposit, swap, and withdraw two ICRC-2 tokens. |
18 |
| - |
19 |
| -## Minimal front end. |
20 |
| - |
21 |
| -These examples use a minimal front end component. |
22 |
| - |
23 |
| -- [`random_maze`](https://github.com/dfinity/examples/tree/master/motoko/random_maze) -- random maze generation, with IC-based randomness. |
24 |
| -- [`cert_var`](https://github.com/dfinity/examples/tree/master/motoko/cert-var) -- simple certified variable (a single 32-bit number), with client-side certificate validation. |
25 |
| -- [`minimal-counter-dapp`](https://github.com/dfinity/examples/tree/master/motoko/minimal-counter-dapp) -- counter dapp with minimal front end. |
26 |
| - |
27 |
| - |
28 |
| -## Full stack. |
29 |
| - |
30 |
| -These examples use a "conventional" front end component (via `React.Component`). |
31 |
| - |
32 |
| -- [`life`](https://github.com/dfinity/examples/tree/master/motoko/life) -- demonstrates upgrades among three versions and stable state migration. |
33 |
| -- [`superheroes`](https://github.com/dfinity/examples/tree/master/motoko/superheroes) -- CRUD-like demo service. |
34 |
| - |
35 |
| -## Security Considerations and Security Best Practices |
36 |
| - |
37 |
| -If you base your application on one of these examples, we recommend you familiarize yourself with and adhere to the [Security Best Practices](https://internetcomputer.org/docs/current/references/security/) for developing on the Internet Computer. The examples provided here may not implement all the best practices. |
| 7 | +If you base your application on one of these examples, it is recommended that you familiarize yourself with and adhere to the [security best practices](https://internetcomputer.org/docs/building-apps/security/overview) for developing on the Internet Computer. The examples provided here may not implement all the best practices. |
0 commit comments