LIFF Starter is a good starter template can help you understand how to integrate LIFF into your own development environment.
You can check the source code and modify it to implement some cool stuff with LIFF API.
Install dependencies
$ npm ci
You can run local server with:
$ npm start
- Click Deploy to Netlify above.
- On the "Create New App" page in Netlify, fill in the required information.
- Click Deploy app.
- Install Netlify CLI tool from npm.
$ npm install netlify-cli -g
- Run following command to build project.
$ LIFF_ID="your LIFF ID" npm run build
- Make sure you have signed in your Netlify account.
$ netlify login
- Deploy to Netlify
$ netlify deploy
-
Create your site name and choose the source path
dist
to deploy. -
You can see the stating(draft) site URL, once you confirm it you can deploy it to production stie.
$ netlify deploy --prod
You can also check official site before you trying it.