LIFF Starter: integrate LIFF into your own development environment
LIFF Starter
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.
Getting Start
Install dependencies
$ npm ci
You can run local server with:
$ npm start
Build & Deploy
Deploy the app using ‘Deploy to Netlify’ button
- Click Deploy to Netlify above.
- On the “Create New App” page in Netlify, fill in the required information.
- Click Deploy app.
Build and deploy the app with Netlify CLI tools
- 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
Demo site
You can also check official site before you trying it.