A Next.js-based platform for tokenizing and trading real-world assets on the Solana blockchain.
- Node.js 18+ or 20+
- pnpm 10.10.0 or higher
- Solana CLI (optional, for Solana program development)
- Docker (optional, for containerized deployment)
Clone the repository and install dependencies:
pnpm installCopy the example environment file and configure as needed:
cp .env.local.example .env.localEdit .env.local with your configuration:
# Solana Network Configuration
NEXT_PUBLIC_SOLANA_NETWORK=devnet # Options: devnet, testnet, mainnet-beta
NEXT_PUBLIC_SOLANA_RPC_ENDPOINT=https://api.devnet.solana.com
# Optional Analytics
NEXT_PUBLIC_GA_MEASUREMENT_ID= # Google Analytics
NEXT_PUBLIC_CLARITY_PROJECT_ID= # Microsoft ClarityRun the development server:
pnpm devOpen http://localhost:3000 in your browser.
To run the dev server on a specific IP address:
pnpm hostThis will start the server on 192.168.100.7 (configured in package.json).
Build the application for production:
pnpm buildStart the production server:
pnpm startRun ESLint to check code quality:
pnpm lintBuild and run using Docker:
# Build the image
docker build -t avalon-platform .
# Run the container
docker-compose up -dThe project includes an Anchor-based Solana program in the solana_program/ directory.
- Start a local validator:
solana-test-validator --reset- Navigate to the Solana program directory:
cd solana_program- Install dependencies:
yarn install- Run tests:
anchor testView and manage program buffers:
solana program show --buffers
solana program close --buffersFor more details, see solana_program/README.md.
- Next.js 14
- React 18
- TypeScript
- Tailwind CSS
- Chakra UI
- Redux Toolkit
- Solana Web3.js
- Anchor Framework
- Chart.js