Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 1.38 KB

README.md

File metadata and controls

39 lines (22 loc) · 1.38 KB

GraphQL React Examples

About

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

Quickstart

Prerequisites

The minimum requirement is to install npm and node.

Running the application

Install the dependencies:

npm i

Run the dev server

npm run dev

And the application will be running at http://localhost:5173

Under the hood

Polls

  1. Poll Component
  2. Poll Styles
  3. GraphQL Requests
  4. GraphQL Types

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.