Browse Source

Adding use cases, fixing links, update folder names

update-clarity-tutorial
Alex Graebe 5 years ago
parent
commit
8d9d1e3db3
  1. 14
      _core/smart/overview.md
  2. 2
      _core/smart/tutorial-counter.md
  3. 6
      _core/smart/tutorial.md

14
_core/smart/overview.md

@ -6,7 +6,7 @@ permalink: /:collection/:path.html
# Introduction to Clarity
{:.no_toc}
Clarity is a smart contracting language for use with the Stacks 2.0 Blockchain. It supports programmatic control over digital assets and unlocks interesting capabilities for decentralized applications. Note that not every application requires smart contracts.
Clarity is a smart contracting language for use with the Stacks 2.0 Blockchain. It supports programmatic control over digital assets.
* TOC
{:toc}
@ -19,6 +19,16 @@ In Nick Szabo's metaphor, the vending machine is the smart contract. The buyer a
If you are new to smart contracts concepts, you should read <a href="https://blockgeeks.com/guides/smart-contracts/" target="_blank">a good general explanation</a> first.
## Use cases
Not every decentralized application requires smart contracts, but Clarity unlocks interesting capabilities for decentralized applications. Examples of interesting use cases include, but are not limited to:
* Access control (e.g. pay to access)
* Non-fungible and fungible tokens
* Business model templates (e.g. subscriptions)
* App Chains
* Decentralized Autonomous Organizations
## Language design
Clarity is a list processing (LISP) language and differs from most other smart contract languages in two essential ways:
@ -42,4 +52,4 @@ Note some of the key Clarity language rules and limitations:
## Learning Clarity
You can try a [Hello World tutorial](tutorial-counter.html) or jump right into the [language reference](clarityRef.html).
You can try a [Hello World tutorial](tutorial.html) or jump right into the [language reference](clarityRef.html).

2
_core/smart/tutorial-counter.md

@ -37,7 +37,7 @@ In this step, you initialize a starter project with additional counter tutorial
```bash
? Template - one of [hello-world, counter]: counter
? Project name: (clarity-counter-project)
? Project name: (clarity-counter)
```
Finally, the project dependencies are installed and your project is ready for development. Because you already completed the Hello World tutorial, the project structure is familiar to you. The main difference is that we have additional tests for a new counter smart contract.

6
_core/smart/tutorial.md

@ -44,15 +44,15 @@ In this step, you initialize a starter project for Clarity development:
```bash
? Template - one of [hello-world, counter]: (hello-world)
? Project name: (clarity-hello-world-project)
? Project name: (clarity-hello-world)
```
Finally, the project dependencies are installed and your project is ready for development.
3. The project is located in a new folder, `clarity-hello-world-project` by default. Jump into the folder and have a look at the file structure:
3. The project is located in a new folder, `clarity-hello-world` by default. Jump into the folder and have a look at the file structure:
```bash
cd clarity-hello-world-project
cd clarity-hello-world
ls
```

Loading…
Cancel
Save