Skip to content

codedforum/CodedForum-community

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

CodedForum ๐Ÿš€

CodedForum is a fully-featured Web3 Learn-to-Earn community forum where users share knowledge and earn cryptocurrency rewards.

License: MIT Node.js Version React Version

๐ŸŒŸ Overview

CodedForum is a decentralized knowledge-sharing platform that incentivizes quality contributions through blockchain-based rewards. Users earn tokens for creating posts, commenting, and receiving upvotes, creating a vibrant, engaged community.

โœจ Features

๐ŸŽฏ Core Features

  • โœ… Web3 Wallet Integration - Seamless MetaMask connection
  • โœ… Learn-to-Earn System - Earn tokens for contributions
  • โœ… Forum Functionality - Create posts, comment, and discuss
  • โœ… Voting System - Upvote/downvote posts and comments
  • โœ… Reputation Tracking - Build your on-chain reputation
  • โœ… Leaderboard - Compete with top contributors
  • โœ… Token Rewards - Claim your earned CFT tokens
  • โœ… IPFS Integration - Decentralized content storage
  • โœ… Smart Contracts - ERC20 token with reward mechanisms
  • โœ… User Profiles - Track your stats and achievements

๐Ÿ’ฐ Earning Mechanism

  • Create Posts: 5 reputation points
  • Comment: 2 reputation points + 1 token
  • Receive Upvotes: 1 reputation point + 0.5 tokens

๐Ÿ› ๏ธ Tech Stack

Frontend

  • React.js - Modern UI framework
  • Ethers.js - Ethereum blockchain interaction
  • React Router - Client-side routing
  • CSS3 - Responsive design

Backend

  • Node.js - Server runtime
  • Express.js - Web framework
  • IPFS - Decentralized storage
  • In-memory storage - Development database

Blockchain

  • Solidity 0.8.20 - Smart contract language
  • Hardhat - Development environment
  • OpenZeppelin - Secure contract libraries
  • ERC20 Standard - Token implementation

๐Ÿš€ Quick Start

Prerequisites

  • Node.js (v16+)
  • npm or yarn
  • MetaMask browser extension

Installation

  1. Clone the repository
git clone https://github.com/codedforum/CodedForum-community.git
cd CodedForum-community
  1. Install dependencies
npm run install-all
  1. Configure environment
cp .env.example .env
# Edit .env with your configuration
  1. Run the application
npm run dev-all
  1. Access the app

For detailed setup instructions, see SETUP.md

๐Ÿ“š Documentation

๐Ÿ—๏ธ Project Structure

CodedForum-community/
โ”œโ”€โ”€ client/              # React frontend application
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ components/  # React components
โ”‚   โ”‚   โ”œโ”€โ”€ utils/       # Utility functions
โ”‚   โ”‚   โ””โ”€โ”€ App.js       # Main app component
โ”‚   โ””โ”€โ”€ package.json
โ”œโ”€โ”€ server/              # Express backend
โ”‚   โ”œโ”€โ”€ index.js         # Main server file
โ”‚   โ””โ”€โ”€ utils/           # Server utilities
โ”œโ”€โ”€ contracts/           # Smart contracts
โ”‚   โ”œโ”€โ”€ CodedForumToken.sol
โ”‚   โ””โ”€โ”€ scripts/deploy.js
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ README.md

๐Ÿ”Œ API Endpoints

Users

  • POST /api/users/register - Register new user
  • GET /api/users/:walletAddress - Get user profile

Posts

  • GET /api/posts - Get all posts
  • POST /api/posts - Create new post
  • GET /api/posts/:id - Get single post
  • POST /api/posts/:id/comments - Add comment
  • POST /api/posts/:id/vote - Vote on post

Rewards

  • GET /api/rewards/leaderboard - Get top users
  • POST /api/rewards/claim - Claim rewards

๐ŸŽจ Screenshots

Home Page

Beautiful landing page with post listings and category filters

Create Post

Intuitive post creation with reward information

Leaderboard

Track top contributors and earning statistics

Profile

Personal dashboard with token balance and activity

๐Ÿ—บ๏ธ Roadmap

โœ… Phase 1 - MVP (Q2 2025)

  • Forum functionality
  • Web3 wallet integration
  • Token rewards system
  • IPFS integration
  • MongoDB integration
  • JWT authentication

๐Ÿ”„ Phase 2 - Enhancement (Q3 2025)

  • On-chain reputation storage
  • NFT achievement badges
  • Token staking
  • Advanced analytics

๐Ÿ”ฎ Phase 3 - Expansion (Q4 2025)

  • Mobile application
  • Governance system
  • Multi-chain support
  • DAO formation

๐Ÿค Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ”— Links

  • Website: [Coming Soon]
  • Twitter: [Coming Soon]
  • Discord: [Coming Soon]
  • Documentation: docs.codedforum.io

๐Ÿ’ฌ Support

๐Ÿ™ Acknowledgments

  • OpenZeppelin for secure smart contract libraries
  • Ethereum community for Web3 standards
  • React community for amazing tools
  • All contributors and supporters

Built with โค๏ธ for the Web3 community

Empowering knowledge sharing through blockchain technology

About

CodedForum is a Web3 Learn-to-Earn community forum where members share knowledge and earn rewards.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages