Git Product home page Git Product logo

line-api-use-case-table-order's Introduction

Overview

LINE API Use Caseサイトで提供しているテーブルオーダーのデモアプリケーションソースコードとなります。
今回紹介している手順を参考にすると、LINE APIを活用したテーブルオーダーアプリケーションを開発することが可能です。
テーブルオーダーアプリケーションを利用すると、LINEアプリ上で飲食店のメニューを表示し、注文~決済を行うことが出来ます。そのため、店舗で注文用に独自のハードウェアを持つ必要が無くなります。
さらに、決済後にLIFFアプリで取得したユーザーIDを利用し、LINEで販促メッセージを送信することも出来ます。

なお、このページで紹介しているソースコードの環境はAWSを利用しています。

The English version document is here.

Libraries

Node.js

フロントエンド側の開発で使用する Node.js をローカル開発環境にインストールしてください。
※ v10.13 以上 最新の LTS バージョンのインストールをおすすめします

【Node.jsダウンロードサイト】
https://nodejs.org/ja/download/

Python

Pythonのバージョン3.8以上がインストール済みでない場合、インストールしてください。
コマンドプロンプト、又はターミナルにて以下のコマンドを入力し、インストール済みか確認できます。

python --version

Python 3.8.3 ← このように表示されたら、インストール済みです。

インストール済みでない場合、バックエンド側の開発で使用するPython(3.8以上)をローカル開発環境にインストールしてください。

【Pythonインストール参考サイト】
Windows: https://www.python.jp/install/windows/install.html
Mac: https://www.python.jp/install/macos/index.html

AWS SAM

※ 注意:5月12日現在AWS側で不具合があり、コマンド実行時にエラーとなる可能性があります。実行時にエラーが出た場合は、該当ファイルの該当プロパティを削除してください。

本アプリケーションのデプロイには、AWS サーバーレスアプリケーションモデル(AWS SAM)を利用します。 AWS公式ドキュメントを参考に、AWS アカウントの登録と設定、AWS SAM CLI と Docker のインストールを行ってください。
※ SAM CLIの推奨バージョンは1.15.0以上
※ Docker のインストールもローカルテストの有無に関わらず必要です。

公式ドキュメントの参考箇所

公式ドキュメントの以下の項目を完了させ、次の手順に進んでください。なお、既に導入済みのものは適宜飛ばして下さい。
※本資料は 2020 年 12 月に作成しているため、最新の公式ドキュメントの内容と齟齬がある可能性があります。

  1. AWS SAM CLI のインストール
  2. AWS 認証情報の設定
  3. (任意)チュートリアル: Hello World アプリケーションの導入

Getting Started / Tutorial

こちらの手順では、アプリケーション開発に必要な「LINEチャネル作成、バックエンド・フロントエンドの構築、テストデータ投入、動作確認」について説明します。 以下リンク先の手順を参考にし、本番環境(AWS)とローカル環境の構築を行ってください。




License

TableOrderの全てのファイルは、条件なしで自由にご利用いただけます。 自由にdownload&cloneをして、LINE APIを活用した素敵なアプリケーションの開発を始めてください!

See LICENSE for more detail.(English)

How to contribute

First of all, thank you so much for taking your time to contribute! LINE API Use Case Hair Salon is not very different from any other open source projects. It will be fantastic if you help us by doing any of the following:

When you are sending a pull request, you'll be considered as being aware of and accepting the followings.

  • Grant the same license to the contribution
  • Represent the contribution is your own creation
  • Not expected to provide support for your contribution

line-api-use-case-table-order's People

Contributors

cvc-fujii avatar hunnycode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.