https://github.com/louis70109/liff-concatenate-ts
LIFF typescript example
https://github.com/louis70109/liff-concatenate-ts
Last synced: 2 months ago
JSON representation
LIFF typescript example
- Host: GitHub
- URL: https://github.com/louis70109/liff-concatenate-ts
- Owner: louis70109
- License: mit
- Created: 2020-08-18T12:57:19.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-19T05:00:10.000Z (over 4 years ago)
- Last Synced: 2025-01-31T22:11:24.156Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 91.8 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
[](https://opensource.org/licenses/MIT)
This is a template for LIFF concatenate mode with nodejs & typescript.
# Environment
- LINE LIFF v2.3 concat mode
- Express / nodejs v12.18
- TypeScript
- Jest (reference [this article](https://titangene.github.io/article/jest-typescript.html))# Heroku
You can test this project on Heroku.
[](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
```
3. Copy url to LINE Developer Console

4. If you want to deploy, use following command:
```
npm run build
```This commnad will compile typescript file to javascript file in `dist/`.
# License
MIT License