Sol.College

Structure lesson (licence does not allow quoting code)

AlisGoBack

Original
joemar25/AlisGoBack
SuperStack fork
Blockchains/AlisGoBack @ f46ed73
Stars
3
Last push (original)
2025-01-04
Languages
TypeScript, CSS, Rust, JavaScript, Dockerfile
Detected stack
AnchorNext.jsweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://alis-go.vercel.app

Architecture

43 source files. By extension: .tsx ×29, .rs ×6, .ts ×5, .js ×3.

Top-level directorySource files
app34
programs6
client1
migrations1
tests1

On-chain programs: programs/errors

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
initialize_userInitializeUserprograms/errors/src/user_profile.rs:12
create_proposalCreateProposalprograms/errors/src/proposals.rs:7
vote_on_proposalVoteOnProposalprograms/errors/src/proposals.rs:23
close_proposalCloseProposalprograms/errors/src/proposals.rs:43
initialize_userInitializeUserprograms/errors/src/lib.rs:19
create_proposalCreateProposalprograms/errors/src/lib.rs:51
vote_on_proposalVoteOnProposalprograms/errors/src/lib.rs:55
close_proposalCloseProposalprograms/errors/src/lib.rs:59

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
app/app/hooks/useAlisGoDAO.tsPublicKey, SystemProgram, findProgramAddressSync, useConnection, useWallet, AnchorProvider
tests/anchor.tsSystemProgram, PublicKey, findProgramAddressSync, AnchorProvider, Program, Keypair
programs/errors/src/proposals.rsseeds, has_one, AccountInfo, Program
client/client.tsAnchorProvider, Program, getBalance
programs/errors/src/user_profile.rsPubkey, seeds, Program
app/app/constants/index.tsPublicKey
app/app/components/ui-landing/l-header.tsxWalletMultiButton
app/app/marketplace/components/header/header.tsxWalletMultiButton
programs/errors/src/structs.rsPubkey
app/app/marketplace/page.tsxPublicKey
programs/errors/src/tourist_spots.rsProgram

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/alisgoback/. 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 start
appnpm run build
appnpm run lint
.anchor build
.anchor test
.anchor run test
.anchor run client
.cargo build
.cargo test

What you could build from it