Skip to content

Yilkash/stack-knowledge

StackKnowledge

A decentralized educational platform on Stacks (Bitcoin L2) where users can share knowledge and earn STX.

Features

  • Share Educational Resources - Upload and share study materials, courses, and educational content
  • Earn with Tips - Receive STX tips from the community for quality content
  • Review System - Rate and review resources to help others find quality content
  • Reputation System - Build your on-chain reputation through contributions
  • Categories - Organize resources by subject (Computer Science, Mathematics, Physics, etc.)
  • Analytics - Track resource performance, views, and engagement

Tech Stack

Layer Technology
Frontend Next.js 15, React 19, TypeScript, Tailwind CSS
Backend Next.js API Routes
Blockchain Stacks (Clarity smart contracts)
Testing Jest, Playwright, Clarinet

Project Structure

stack-knowledge/
├── frontend/          # Next.js frontend application
│   ├── app/          # Next.js App Router pages
│   ├── components/   # React components
│   ├── hooks/       # Custom React hooks
│   └── lib/         # Utilities and libraries
├── backend/          # Stacks smart contracts
│   ├── contracts/   # Clarity contract files
│   └── tests/      # Contract tests
├── docs/            # Detailed documentation
└── scripts/         # Deployment and utility scripts

Getting Started

Prerequisites

  • Node.js 20+
  • npm or pnpm
  • Clarinet (for smart contract development)

Installation

# Install frontend dependencies
cd frontend
npm install

# Install backend dependencies
cd ../backend
npm install

Development

# Frontend development
cd frontend
npm run dev

# Run smart contract tests
cd backend
clarinet test

Documentation

Smart Contract

The main Clarity contract (knowledge-registry.clar) provides:

  • Resource registration and management
  • Tip mechanism with 5% platform fee
  • Review and rating system
  • User reputation tracking
  • Resource categories and tags
  • Verified educators

License

MIT License - see LICENSE for details.


Built on Stacks - The Bitcoin Layer 2 for smart contracts

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors