An open API service indexing awesome lists of open source software.

https://github.com/hirosystems/platform-template-hello-world


https://github.com/hirosystems/platform-template-hello-world

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# Print Hello World in Clarity

The primary intent of this example is to demonstrate printing "Hello World" within a Clarity function. The example also demonstrates both read-only and public functions, simple handling of function parameters, and throwing an error within a function.

## Know your Contract

Review the [hello-world.clar](/examples/hello-world/contracts/hello-world.clar) contract.

You can interact with this sample by commenting/uncommenting respective functions, altering the behavior, and running them through Clarinet or unit tests.

To add a new contract, use [Clarinet](https://docs.hiro.so/stacks/clarinet).

## Test your Contract

- You can manually test your your contracts in the [Clarinet console](https://docs.hiro.so/clarinet/how-to-guides/how-to-test-contract#load-contracts-in-a-console).
- You can programmatically test your contracts with [unit tests](https://docs.hiro.so/clarinet/how-to-guides/how-to-test-contract).