1. Blog

Create a blog module

Create posts

배울 점

  1. 블록체인 앱 blogd를 빌드.

  2. CLI function 생성.

  3. blog posts를 생성하는 메세지 정의.

  4. 생성된 posts 리스트.

  5. functionality를 추가하기 위한 transaction type 생성.

  6. Front end user interface 생성 및 점검.

Requirements

  • 해당 튜토리얼은 Starport v0.17.0 를 사용한다.

  • Starport는 블록체인을 빌드, 테스트, 생성하는 데 필요한 모든 것을 제공한다.

curl https://get.starport.network/starport@v0.17.0! | bash

Getting Started

  • blog라는 이름의 폴더 안에 initial app structure를 생성한다.

starport scaffold chain github.com/example/blog
  • Starport의 메인 기능 중 하나는 코드 생성이다.

  • starport type 커맨드로 data type을 추가할 수 있다.

Overview

  1. app/app.go file

    • SDK 모듈을 import하고 configure한다.

Last updated