You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 17, 2025. It is now read-only.
* first commit
* review wording
* change small thing
* order list
* part 2 committed
* preparing all entries
* part 3 of dapp tutorial
* ongoing work
* numerotation
* Update docs/tutorials/dapp/part-1.md
yep
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-2.md
thanks
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-3.md
thanks
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-4.md
thanks
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-1.md
thanks
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-2.md
thanks
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-3.md
thanks
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-4.md
thanks
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials.mdx
weird duplication
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp.md
ok
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-1.md
ok
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-2.md
ok
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-3.md
ok
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-3.md
ok
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-3.md
ok
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-3.md
ok
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-3.md
Co-authored-by: Tim McMackin <[email protected]>
* reformulate swear words
* adding to sidebar and dApp renaming
* move links to docs.tezos.com
* numbering the steps
* numbering other steps
* sentences with a period
* changing indents on numbering
* no spaces before colon
* removed the mdx extension as it is buggy and duplicated import lines
* Update docs/tutorials/dapp/part-1.md
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-1.md
Co-authored-by: Tim McMackin <[email protected]>
* changing section
* reformulation
* Update docs/tutorials/dapp/part-2.md
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-2.md
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-3.md
Co-authored-by: Tim McMackin <[email protected]>
* Update docs/tutorials/dapp/part-3.md
Co-authored-by: Tim McMackin <[email protected]>
* more explicit instruction
* js files with single quote
* remove space
* shorter sidebar title
* last fixes
* if prettier is activated, it forces to use singlequote
---------
Co-authored-by: Tim McMackin <[email protected]>
> dApp : A decentralized application is a type of distributed open source software application that runs on a peer-to-peer (P2P) blockchain network rather than on a single computer. DApps are visibly similar to other software applications that are supported on a website or mobile device.
9
+
10
+
This tutorial shows you how to create a poke game on smart contract.
11
+
The game consists on poking the owner of a smart contract. The smart contract keeps a track of user interactions and stores a trace.
12
+
13
+
Poke sequence diagram.
14
+
15
+
```mermaid
16
+
sequenceDiagram
17
+
Note left of User: Prepare poke transaction
18
+
User->>Smartcontract: poke()
19
+
Note right of Smartcontract: store(pokeTrace)
20
+
```
21
+
22
+
You will learn :
23
+
24
+
- How to create a Tezos project with Taqueria.
25
+
- How to create a smart contract in jsLigo.
26
+
- How to deploy the smart contract a real testnet named Ghostnet.
27
+
- How to create a frontend dApp using Taquito library and interact with a Tezos browser wallet.
28
+
- How to use an indexer like TZKT.
29
+
30
+
## Prerequisites
31
+
32
+
This tutorial uses Typescript, so it will be easier if you are familiar with JavaScript.
33
+
34
+
1. Make sure that you have installed these tools:
35
+
36
+
-[Node.JS and NPM](https://nodejs.org/en/download/): NPM is required to install the web application's dependencies.
37
+
-[Taqueria](https://taqueria.io/), version 0.45.0 or later: Taqueria is a platform that makes it easier to develop and test dApps.
38
+
-[Docker](https://docs.docker.com/engine/install/): Docker is required to run Taqueria.
39
+
-[jq](https://stedolan.github.io/jq/download/): Some commands use the `jq` program to extract JSON data.
40
+
-[`yarn`](https://yarnpkg.com/): The frontend application uses yarn to build and run (see this article for details about [differences between `npm` and `yarn`](https://www.geeksforgeeks.org/difference-between-npm-and-yarn/)).
41
+
- Any Tezos-compatible wallet that supports Ghostnet, such as [Temple wallet](https://templewallet.com/).
42
+
43
+
2. Optionally, you can install [`VS Code`](https://code.visualstudio.com/download) to edit your application code in and the [LIGO VS Code extension](https://marketplace.visualstudio.com/items?itemName=ligolang-publish.ligo-vscode) for LIGO editing features such as code highlighting and completion.
44
+
Taqueria also provides a [Taqueria VS Code extension](https://marketplace.visualstudio.com/items?itemName=ecadlabs.taqueria-vscode) that helps visualize your project and run tasks.
45
+
46
+
## The tutorial application
47
+
48
+
In this tutorial, you create a simple game where the user is poking though a dApp. The user interacts with the smart contract through a web interface, where they can see the current state of the contract and send poke commands to it. The contract responds by updating its storage with the user's address. Alternately, a user can also poke the contract deployed by other users.
49
+
50
+
The application looks like this:
51
+
52
+

53
+
54
+
The code for the completed application is in this GitHub repository: [solution](https://github.com/marigold-dev/training-dapp-1/tree/main/solution)
55
+
56
+
When you're ready, move to the next section [Create your minimum dApp on Tezos](./dapp/part-1) to begin setting up the application.
0 commit comments