Skip to content

Latest commit

Β 

History

History
127 lines (81 loc) Β· 4.61 KB

File metadata and controls

127 lines (81 loc) Β· 4.61 KB

πŸ› οΈ CodeDuet React App (DApp)

β€’ Vercel Live demo: coduet.vercel.app β€’ Anchor Program: github.com/alisonborba/coduet

A decentralized application (dApp) built on Solana to connect developers seeking help with other developers ready to collaborate and earn.

Watch the demo


πŸ“Œ Overview

CodeDuet is a Web3-powered platform that allows users to request developer help through paid job posts, match with potential helpers (bidders), and settle jobs via smart contract transactions on the Solana blockchain.

This repository contains the React + Next.js front-end of the project, which interacts with the Anchor smart contract deployed on Solana Devnet.


πŸš€ Features

  • ✍️ Create Help Post: Users can publish posts requesting assistance with coding tasks.
  • ❌ Cancel Posts: Publishers can cancel open posts; only the platform fee is retained.
  • πŸ’° Fee Management (5%): Platform fees are automatically deducted upon post creation or cancellation.
  • πŸ“© Apply for Jobs: Helpers can apply to posts as bidders.
  • βœ… Complete Contract: Once the helper completes the task, the publisher can release the funds.
  • πŸ” Full smart contract validation via Anchor framework.
  • 🎨 Responsive UI powered by Tailwind CSS.

πŸ§ͺ Getting Started

πŸ“¦ Install dependencies

npm install

▢️ Run locally

npm run dev

By default, it runs using Vite for fast hot-reloading.

βš™οΈ Environment

Make sure to set up the following environment variables if needed:

VITE_MAIN_VAULT_KEYPAIR=[2, 3, 5, 7, 11, 13, 17, 19, 23, 29...]

πŸš€ Deployment

This project is deployed using Vercel, providing fast and seamless continuous deployment for the front-end application.


πŸ“‚ Folder Structure

  • /src/components: Reusable UI components.
  • /src/lib: Utilities to interact with the smart contract (get PDA, program instance, etc).
  • /src/pages: Next.js page routes.
  • /tests: Integration tests (using Mocha + Anchor client).

🧰 Tech Stack

Layer Technology
Blockchain Solana (Devnet)
Smart Contract Anchor Framework
Frontend React + Next.js
Build Tool Vite
Web3 Integration @solana/web3.js
Wallet Support Phantom Wallet (via browser extension)
Styling Tailwind CSS
Anchor JS Client @coral-xyz/anchor

πŸ“ˆ Improvements and Contributions

This project is built during spare time and is a work in progress. Contributions and suggestions are welcome!

πŸ”§ Upcoming Improvements

  • Make sure the helpers filled the wallet field before send bids.
  • Add the completeContract transaction solana explorer link.
  • Form validations and toast notifications enhancements.
  • Contract status indicators and better error handling.
  • Unit tests.
  • Improve visual feedback.
  • Reusable hooks for Solana interactions.
  • Fix others bugs.

🀝 Contributing

If you're interested in contributing or have ideas for improvement, feel free to fork the repo, create a issue or submit a pull request.

πŸ“§ Contact me: alisonborbaa@gmail.com
πŸ”— GitHub: @alisonborba πŸ‘¨β€πŸ’Ό Linkedin: alison-borba


🌐 Related Repositories


πŸ’‘ Keywords

Solana, Web3, DApp, Anchor, Next.js, React, DeFi, Smart Contract,
Tailwind, Blockchain, Phantom Wallet, Decentralized Jobs, Open Source,
Developer DAO, Gasless Transactions


πŸ“œ License

MIT License β€” free to use, fork, build on.