Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/louis70109/liff-concatenate-js
LIFF javascript example
https://github.com/louis70109/liff-concatenate-js
heroku liff nodejs
Last synced: 14 days ago
JSON representation
LIFF javascript example
- Host: GitHub
- URL: https://github.com/louis70109/liff-concatenate-js
- Owner: louis70109
- License: mit
- Created: 2020-08-11T12:34:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-26T06:11:59.000Z (about 4 years ago)
- Last Synced: 2024-12-04T20:50:10.509Z (2 months ago)
- Topics: heroku, liff, nodejs
- Language: HTML
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LINE LIFF concatenate mode example
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
This is a template for LIFF concatenate mode by nodejs.
# Environment
- LINE LIFF v2.7 concatenate mode
- Express / nodejs v12.18# Heroku
You can test this project on Heroku.
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
Use following up commands to check machine:
```
heroku run bash -a YOUR_HEROKU_NAME
heroku logs --tail -a YOUR_HEROKU_NAME
```# LIFF Settings
- Login `LINE Developer Console`.
- Create a `LINE Login` channel.
- Click `LIFF` tab and add LIFF application.
- Input `https://YOUR_URL/notify` in Endpoint URL column.
- Copy `LIFF ID` to environment `CONCAT_ID` variable.
- Now you can test concat cases:
- https://liff.line.me/LIFF_ID?aaa=bbb
- https://liff.line.me/LIFF_ID?a=123&b=456# Local testing
1. first terminal window
```
cp .env.sample .env
npm install
npm run dev
```2. Create a provisional Https:
```
ngrok http 5000
```If you have npm environment:
```
npx ngrok http 5000
```![](https://i.imgur.com/azVdG8j.png)
3. Copy url to LINE Developer Console
![](https://i.imgur.com/xOingAO.png)
# License
MIT License