This is a sample app for LiveLike that makes use of LiveLike's GraphQL API.
Note: For UI examples that don't use GraphQL, see our Web SDK HTML Demo
The minimum requirement is to install npm and node.
Install the dependencies:
npm i
Run the dev server
npm run dev
And the application will be running at http://localhost:5173
The Poll Component renders one Text Poll and one Image Poll.
Important
To vote the on the poll, you must set the VITE_LIVELIKE_ACCESS_TOKEN environment variable to your LiveLike user profile access_token
. The .env.example
file is provided as an example. Information about LiveLike user profiles and access_token
can be found User Profiles docs page.