Sol.College

Structure lesson (licence does not allow quoting code)

TaleDotFun

Solana Breakout 2025

Original
rsamudragawang/TaleDotFun
SuperStack fork
Blockchains/TaleDotFun @ cb37438
Stars
0
Last push (original)
2025-05-17
Languages
Vue, JavaScript, Rust, CSS, TypeScript, HTML
Detected stack
AnchorMetaplexweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://taledotfun.xyz/

Architecture

45 source files. By extension: .js ×40, .rs ×3, .ts ×2.

Top-level directorySource files
backend27
app13
programs3
migrations1
tests1

On-chain programs: programs/tale-governance, programs/tale-nft, programs/tale-story

How it works: instructions and accounts

Each instruction handler and the accounts struct it validates, found by reading the Rust source. Links go to the exact line at the pinned commit.

InstructionAccountsSource
delete_taleDeleteTaleprograms/tale-story/src/lib.rs:215
delete_episodeDeleteEpisodeprograms/tale-story/src/lib.rs:316
like_episodeLikeEpisodeprograms/tale-story/src/lib.rs:321
like_taleLikeTaleprograms/tale-story/src/lib.rs:328
cancel_mint_activityCancelMintActivityprograms/tale-nft/src/lib.rs:109
close_mint_activity_accountCloseMintActivityAccountprograms/tale-nft/src/lib.rs:126
unlist_nftUnlistNftprograms/tale-nft/src/lib.rs:198
cast_voteCastVoteprograms/tale-governance/src/lib.rs:69
finalize_voteFinalizeVoteprograms/tale-governance/src/lib.rs:110
get_resultsGetResultsprograms/tale-governance/src/lib.rs:134

Where the Solana code lives

Source files that import a Solana SDK, ranked by how many Solana APIs they use, with the APIs each one calls. Read them in this order to see how the app talks to the chain.

FileSolana APIs used
programs/tale-nft/src/lib.rsPubkey, seeds, has_one, Program, Transaction, AccountInfo
programs/tale-story/src/lib.rsPubkey, seeds, has_one, Program
programs/tale-governance/src/lib.rsPubkey, seeds, Program, init_if_needed, AccountInfo
app/src/new_services/metaplex.jsPublicKey, createUmi, mplTokenMetadata, signTransaction, transfer
app/src/utils/umi.jscreateUmi, mplTokenMetadata, useWallet, signTransaction, PublicKey
backend/routes/designs.jsPublicKey
app/src/services/solanaService.jsmplTokenMetadata, getProgramAccounts, Program
backend/controllers/authController.jsPublicKey
tests/readium-fun.tsProgram, AnchorProvider
app/src/services/walletService.jscreateUmi
migrations/deploy.tsAnchorProvider

Dapp: devnet deploy pending

⏳ Devnet deploy pending — goes live when the devnet wallet is topped up. This fork's own dapp is not deployed yet, so there is no program address or transaction to show. It is queued in dapp-queue.txt; once devnet SOL is available it is deployed, exercised with real devnet transactions, and this section switches to the live dapp at /dapps/taledotfun/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.

How to run, build and test

These commands come from the repo's own manifests (package.json scripts, Anchor.toml, Cargo, go.mod, Makefile). Check the README for prerequisites and environment variables.

DirectoryCommandRuns
.npm run lint
appnpm run dev
appnpm run build
backendnpm run start
backendnpm run test
.anchor build
.anchor test
.anchor run test
.cargo build
.cargo test

What you could build from it