Coder Social home page Coder Social logo

tatsutakein / liff-playground Goto Github PK

View Code? Open in Web Editor NEW

This project forked from line/liff-playground

0.0 0.0 0.0 200 KB

An example app to show the usage of LIFF's API functions

Home Page: https://liff-playground.netlify.app

License: Apache License 2.0

Shell 0.20% HTML 9.03% CSS 15.49% TypeScript 74.23% JavaScript 1.04%

liff-playground's Introduction

LIFF Playground

This is a web application that allows you to try out the basic features of the LINE Front-end Framework (LIFF). For example, you can deploy the following playground to your server.

Table of contents

Preparation

1. Get a LIFF ID

To start the LIFF Playground, you need to obtain a LIFF ID from the LINE Developers Console. Follow the steps below to obtain a LIFF ID.

2. Set the LIFF ID

Set the LIFF ID obtained in the above procedure as an environment variable. Open .env and set the LIFF ID.

REACT_APP_LIFF_ID="Your LIFF ID"

Usage

This section shows two ways to run it on local and deploy it on a server.

Run on local

To run the LIFF Playground on local, first install the dependent packages. Then run the application.

$ npm install
$ npm start

This will start it up. When you access the URL shown in the terminal, you can see the LIFF Playground.

Deploy to a server

This section shows an example of deploying LIFF Playground to Netlify. Install the Netlify CLI beforehand.

The following commands will build the source code and deploy it to Netlify.

$ netlify build
$ netlify deploy --prod

After executing the above, the LIFF Playground will be deployed on Netlify. And the URL of the deployed page will be displayed in the terminal.

Then register this URL on the LINE Developers Console. Register this URL as the Endpoint URL in the LIFF app settings page. See Adding a LIFF app to your channel for instructions on how to register.

That's it! The LIFF Playground will appear when you access the deployed URL. You can confirm that LINE Login and other features work properly.

liff-playground's People

Contributors

leechsien avatar tatsutakein avatar zenizh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.