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.
- 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.
Follow these steps to set up the project:
git clone https://github.com/liteflow-labs/pointfi-starter-kit.git
cd pointfi-starter-kit
npm install
npm run dev
npm run build
npm start
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.
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.
Contributions are welcome! Please open an issue or submit a pull request for any changes.
This project is licensed under the MIT License.