Skip to content

liteflow-labs/pointfi-starter-kit

Repository files navigation

PointFi Starter Kit

Purpose

The PointFi Starter Kit is a boilerplate project designed to help businesses launch their own gamified web3 applications. It includes a Next.js frontend with TypeScript, Tailwind CSS, and React Query, as well as a Liteflow SDK backend to manage quests and leaderboards.

Features

  • Quests: Display a list of quests that users can complete to earn points.
  • Leaderboard: Show a leaderboard of users with the most points.
  • Profile: Display a user's profile with their points and completed quests.

Setup

Follow these steps to set up the project:

Clone the repository:

git clone https://github.com/liteflow-labs/pointfi-starter-kit.git
cd pointfi-starter-kit

Install dependencies:

npm install

Run the development server:

npm run dev

Build the application:

npm run build

Start the production server:

npm start

Configuration

The project uses environment variables to configure the frontend and backend. Create a .env.local file in the root of the project and add the following variables:

# Create your project ID on https://reown.com/
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=

# Create your Liteflow API key on https://dashboard.liteflow.com/developers
NEXT_PUBLIC_LITEFLOW_API_KEY=

The UI is built with Tailwind CSS and shadcn/ui, so you can customize the styles by editing the tailwind.config.js file and by importing components from the shadcn/ui library.

The application uses Wagmi and RainbowKit for wallet connection.

Deployment

The project is designed to be deployed to Vercel. You can deploy the project by connecting your GitHub repository to Vercel and configuring the environment variables in the Vercel dashboard.

Deploy with Vercel

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes.

License

This project is licensed under the MIT License.