This is the demo app source code for Smart retail provided on the LINE API Use Case site. By referring to the steps described in this article, you can develop a smart retail app using the LINE API.
With the smart retail app, you can purchase and pay for products on the LINE app. Since the user does the checkout process themselves, it also reduces the work load of the store/clerk. 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
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 app uses a barcode scanner. You can choose between Quagga and Scandit for development. To use Scandit, get a Scandit License Key from the SCANDIT site.
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 Smart Retail 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 Smart Retail 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