A Next.js application demonstrating integration with GibWork's API for creating and exploring tasks with Solana wallet authentication.
This application serves as an example implementation of GibWork's task management API with Solana wallet integration. It features two main routes:
/createTasks
: For authenticated users to create new tasks/exploreTasks
: To browse and view all listed tasks
- Node.js (v16 or higher)
- npm
- Solana Wallet
- Clone the repository:
git clone <repository-url>
cd gibwork-api-example
- Install dependencies:
npm install
# or
yarn install
- Start the development server:
npm run dev
# or
yarn dev
The application will be available at http://localhost:3000
- Application requires users to connect their Solana wallet before creating tasks
- Implemented using Solana Web3.js library
Authenticated users can create tasks by providing:
- Title
- Description
- Token Mint Address
- Token Amount
- Tags
Endpoint used: POST https://api2.gib.work/tasks/public/transaction
Browse all listed tasks with features including:
- View all tasks:
GET https://api2.gib.work/explore
- View individual task details:
GET https://api2.gib.work/tasks/{id}
- Fork the repository
- Create your feature branch:
git checkout -b feature/your-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature/your-feature
- Submit a pull request