📖
Dev Documents
  • README
  • Basic Concepts
    • TEA Developer Prerequisites
    • The TEA Economic Revolution for Developers
    • The Future of Layer-2s
    • What Makes a Web3 App?
    • Magic of the State Machine
  • Step by Step Tutorial
    • Install Dev Environment
    • Hello World
      • Step 1: Build sample-actor and Run Unit Test
      • Step 2: Start the Local Dev Environment
      • Sample Actor Code Walkthrough
      • Sample Front-end Code Walkthrough
      • 025_understand_request_and_response
    • Deploy Hello World on Testnet
    • Add Login Feature
      • Sample-actor Code Walkthrough - Login Branch
        • tea_sdk_utils
      • Sample Front-end Walkthrough - Login Branch
    • SQL
      • Sample Txn Executor
      • Sample Actor
      • Sample Front-end
    • Reward Fund Transfer
      • Sample Txn Executor
    • Retweet Task
      • Retweet Frontend
      • Retweet Sample Actor
      • Retweet Txn Executor
      • Retweet FAQ
    • Gas Fees
      • Query logs
      • A deep dive into gas measurement and settlement
    • Summary
  • Billing
    • Billing FAQ
    • Gas Fee Billing
    • Gas & Fuse Limits
    • Local Debugging Environment
    • State Maintainer Billing
    • TApp Billing
  • Example TApps
  • Advanced TApps
    • TEA Party TApp Intro
    • TEA Party Code Walkthrough
  • Functions
    • Actors vs Functions
    • Function Calls Between Native & Wasm
    • Native vs Wasm Functions
  • Glossary
    • Actor
    • Adapter
    • App AES Key
    • AuthKey
    • back_end_actor
    • Birth Control
    • Blockchain Listener
    • Capability
    • CML Auctions
    • Commands
    • Consensus
    • Context
    • Conveyor
    • Conveyor: Mutable vs Immutable
    • enclave
    • Followup
    • Front-end
    • GlueSQL
    • GPS
    • Hosting Actor Handlers
    • Hosting CML
    • hosting_profitability
    • Magic of WASM
    • mini-runtime
    • OrbitDb
    • Order of Txns
    • party-actor
    • party-fe
    • Party-state-actor
    • Providers
    • Public Service
    • queries
    • Remote Attestation
    • Staking to Hosting CML
    • Staking to TApp
    • State
    • State Machine
    • State Machine Actor
    • State Machine Replica
    • TEA ID
    • TPM
    • Transactions
    • VMH - Virtual Messaging Hub
    • Where Messages are Stored
Powered by GitBook
On this page
  • Clone the tutorial master branch
  • Frontend and backend
  1. Step by Step Tutorial

Hello World

PreviousInstall Dev EnvironmentNextStep 1: Build sample-actor and Run Unit Test

Last updated 2 years ago

is the github repo of our tutorial. It can also be used as the boilerplate if you want to build a new TApp but don't want to start from scratch.

This repo has many branches with very branch a step in our tutorial. You can find the description for every branch in its associated README file.

The master branch and login branch are the most commonly used boilerplates. The master branch is a "hello world" example, and the login branch has almost all of the common basic features built-in.

If you want to verify that your development envionment is setup correctly, you can use the master branch and test the hello world. But if you're going to make a full featured TApp, the login branch might be a better choice because it comes with the basic TApp features, such as "login/out", "transfer funds", and "query balance". We believe most TApps would use those features, so we put them together into the utility library that comes with this login branch.

Clone the tutorial master branch

Run git clone https://github.com/tearust/tutorial-v1.git to clone code to local.

If you'd like to check in your modified code to your own git repo, please rename the project to avoid conflict.

Frontend and backend

There are two folders in the root of the tutorial-v1 code repo:

  • sample-actor: This is the back end lambda function that's similar to the backend web services in the web2 world.

  • sample-front-end: This is the front end code that's similar to the frontend SPA in the web2 world.

In the future steps (branches) you'll see a new folder called sample-txn-executor. That's the transaction handler function that runs inside the . It's similar to the stored procedures of databases in the web2 world.

https://github.com/tearust/tutorial-v1
state machine