Git Product home page Git Product logo

tickets's Introduction

Ticket NFT

チケットとして機能するような NFT を活用する Web アプリケーションのサンプルです。NFT を保有している人だけが特定の Web ページを見られように、アクセスしてきたユーザに対してウォレット アドレスによる認証・認可を行います。

ディレクトリ構成

このレポジトリは、以下に示す 3 つのディレクトリを含んでいます。それぞれのディレクトリが、個別のレポジトリへのサブ モジュールになっています。

  • backend ディレクトリ
    バックエンドを記述した TypeScript のプロジェクトです。ビルドして起動すると、Express を利用した Web サーバが開始します。

  • blockchain ディレクトリ
    スマート コントラクトを記述した Truffle プロジェクトです。スマート コントラクトは、コンパイルした後、ブロックチェーンにデプロイします。

  • frontend ディレクトリ
    TypeScript と Vue 3 でフロントエンドを記述した webpack 5 のプロジェクトです。ビルドすると、ユーザー向けのページと管理者向けのページが dist ディレクトリに生成されます。

次のコマンドで、全サブ モジュールも含めて、再帰的にクローンします。

git clone --recursive https://github.com/takeiyuto/tickets.git

動作方法

以下の順序で、それぞれのプロジェクトの README の手順に従います。

  1. blockchain (README)
  2. frontend (README)
  3. backend (README)

ライセンス表示

このサンプル プロジェクトは、MIT Licenseで提供しています。

参照

徹底解説 NFTの理論と実践の第8章を参照してください。本書の Web サイトも参考にしてください。

tickets's People

Contributors

takeiyuto avatar

Stargazers

Hiroshi avatar HK avatar

Watchers

 avatar  avatar

Forkers

harukikondo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.