https://github.com/hirosystems/platform-template-hello-world
https://github.com/hirosystems/platform-template-hello-world
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hirosystems/platform-template-hello-world
- Owner: hirosystems
- License: mit
- Created: 2024-11-11T19:31:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-09T10:58:33.000Z (about 1 year ago)
- Last Synced: 2025-06-26T11:56:55.306Z (about 1 year ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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).