This is the demo app source code for Table Order provided on the LINE API Use Case site. By referring to the steps described in this article, you can develop a table order app using the LINE API.
With the Table Order app, you can display a restaurant's menu on the LINE app and place an order - and make payment. This eliminates the need for stores to have their own hardware for ordering. In addition, you can use the user ID obtained from the LIFF app after payment to send promotional messages via LINE.
The source code environment introduced on this page uses AWS.
Install Node.js, which will be used for the front-end development, in your local development environment. *We recommend installing the latest LTS version of v10.13 or higher
Node.js download site:
https://nodejs.org/en/download/
Install Python version 3.8 or later if it isn't already installed.
You can check if it's installed by entering this command in Command Prompt or Terminal:
python --version
If Python is installed, the version will be returned. For example:
Python 3.8.3
Install Python (3.8 or higher), used for back-end development, in your local development environment if it's not already installed.
Python installation reference site:
Windows: https://docs.python.org/3/using/windows.html
Mac: https://docs.python.org/3/using/mac.html
*Note: As of May 12, an error may occur when executing the command due to a problem on the AWS side. If an error occurs during execution, delete the corresponding property of the file.
The AWS Serverless Application Model (AWS SAM) is used to deploy this app.
See the official AWS documentation to register and set up an AWS account, and install the AWS SAM CLI and Docker.
*Recommended version of SAM CLI is 1.15.0 or later.
*Docker installation is also required, with or without local testing.
Complete these items in the official documentation and proceed to the next step. If you have already installed it, you can skip this section.
*This document was created in December 2020 and may be inconsistent with the latest official documentation.
- Install AWS SAM CLI
- Set up AWS authentication credentials
- (Optional) Tutorial: Deploying the Hello World app
This procedure explains how to create a LINE channel, build the backend and frontend, and check the operation, which are necessary for app development.
See these steps to build your local and production (AWS) environment:
- Create a LINE channel
- Build the back-end
- Build front end production environment (AWS)
- Build a local front end environment
All files on Table Order are free to use without conditions.
Download and clone to start developing apps using LINE API.
See LICENSE for details. (English)
Thank you for taking the time to contribute. LINE API Use Case Table Order isn't different from any other open source projects. You can help by:
- Filing an issue in the issue tracker to report bugs and propose new features and improvements.
- Asking a question using the issue tracker.
- Contributing your work by submitting a pull request.
When you are sending a pull request, be aware of and accepting the following:
- Grant the same license to the contribution
- Represent the contribution is your own creation
- Not expected to give support for your contribution