Create and share your namecard in LINE within minutes.
- Made with: LIFF, NextJS, React
- Demo: https://line-namecard.netlify.app/
- Node.js <= 16.20.0
- npm
- yarn (optional)
- Install dependencies
npm install # or yarn
- Run the development server:
npm run dev # or yarn dev
To enable Line login and sending messages, you need to register a LIFF app in the LINE Developer Console.
- Create a LINE Provider - LINE Official Guide
- Create a LINE Login Channel - LINE Official Guide
- Add the LIFF app to the channel - LINE Official Guide
Edit .env.local
file in the root directory of the project.
LIFF_ID = "Your LIFF ID which is aquired from LINE Dev Center"
LIFF_URL = "Liff url of the app, eg: https://line-namecard.netlify.app"
DOMAIN_URL = "Domain url of the app, eg: https://liff.line.me/<LIFF_ID>"
- How to add environment variables in local development
- How to add environment variables to Netlify
- How to add environment variables to Vercel
This project was inspired by and built based on the following projects:
- LIFF Starter
- LINE 數位版名片 liff-businesscard
- react-liff - A react context provider for LIFF
- flex2html - Convert LINE Flex message to HTML