Skip to content

Frontend: Teachlink is a platform for technocrat where knowlege, skills, ideas, and information that can bring about development and improvement can be shared, dissected, you can also earn from it.

Notifications You must be signed in to change notification settings

AbdulSnk/teachLink_web

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌐 web/README.md

πŸ“š TeachLink Frontend

TeachLink is a decentralized platform built for technocrats to share, analyze, and monetize knowledge through collaborative content, blockchain-based tipping, and gamified reputation. This repository contains the frontend codebase built with Next.js (App Router), Tailwind CSS, and integrated with Starknet for seamless Web3 interactions.


πŸš€ Project Overview

TeachLink empowers users to:

  • πŸ“’ Share knowledge, tutorials, or insights
  • 🧠 Engage in discussions and collaborative learning
  • πŸ’Έ Earn through on-chain tipping
  • πŸ”— Build reputation with verifiable Web3 credentials

This frontend serves as the main user interface for interacting with TeachLink's decentralized knowledge ecosystem. It supports wallet-based login, markdown post creation, tipping, theming, user profiles, and topic feedsβ€”all while maintaining a seamless Web2.5 user experience.


🧱 Tech Stack

Layer Technology
Framework Next.js (App Router)
Styling Tailwind CSS
Web3 Starknet.js, StarknetKit
State Mgmt React Context / Hooks
Markdown React Markdown + Remark
Theming next-themes
Indexing Apibara (backend)
Wallets Argent X, Braavos

βš™οΈ Features

  • πŸ” Starknet Wallet Integration – Login and interact using Starknet-compatible wallets
  • 🧾 Markdown-Based Post Editor – Rich, previewable post creation using markdown
  • πŸ’‘ Tipping System – Send and receive on-chain tips via smart contracts
  • πŸŒ™ Dark/Light Theme Toggle – Accessible theming using Tailwind CSS
  • πŸ”Ž Dynamic Routing with App Router – Clean, scalable navigation
  • πŸ“‚ Profile and Topic Pages – View user-specific content and explore topic-specific posts
  • πŸ“± Responsive Layout – Fully mobile-ready with modular components

πŸ“ Directory Structure (Highlights)

/app /create β†’ Post creation page /post/[id] β†’ View individual post /profile/[user] β†’ User profile /topics/[slug] β†’ Topic feed /components Navbar.tsx β†’ Top navigation bar Sidebar.tsx β†’ Side navigation Editor.tsx β†’ Markdown post editor WalletProvider.tsx β†’ Wallet connection logic /styles globals.css β†’ Tailwind directives


πŸ›  Setup Instructions

  1. Clone the repo
git clone https://github.com/teachlink/frontend.git
cd frontend
Install dependencies

bash
Copy
Edit
npm install
Set up environment variables
Create a .env.local with:

ini
Copy
Edit
NEXT_PUBLIC_STARKNET_NETWORK=testnet
NEXT_PUBLIC_INDEXER_API_URL=https://indexer.teachlink.xyz
Run the development server

bash
Copy
Edit
npm run dev
πŸ—οΈ Development Milestones
βœ… Tailwind CSS Integration

βœ… App Router setup with nested layouts

βœ… Wallet connection via StarknetKit

βœ… Theme toggle and persistence

βœ… Markdown editor with live preview

🚧 Topic and profile page rendering

🚧 DAO & governance integration post-launch

For detailed tasks, see GitHub Issues

🀝 Contributing
We welcome community contributions!

Guidelines:
Fork the repo and make your changes in a feature branch

Before submitting a PR, read the CONTRIBUTING.md file

## πŸ“¬ Join the Community

- [Telegram](t.me/teachlinkOD)
Join our Telegram group for discussions and support

Make sure your PR references the correct issue:
Example: Close #3

βœ… Acceptance Criteria for PRs
Feature must align with roadmap/issue description

Must include working UI with no console errors

Must use lucide icons for consistent usage throughout the app

Must use Starknet best practices for wallet/contract interactions

Use Tailwind CSS with responsive design

PR title should be clear and reference issue number

βœ… Outcome: A scalable, token-driven learning platform where creators monetize knowledge, learners access premium content, and all users interact securely β€” powered by Web2 + Web3.

let make our code clean, maintainable and scallable. Keep to Standard

πŸ“œ License
MIT Β© 2025 TeachLink DAO

About

Frontend: Teachlink is a platform for technocrat where knowlege, skills, ideas, and information that can bring about development and improvement can be shared, dissected, you can also earn from it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.9%
  • CSS 1.1%
  • JavaScript 1.0%