Skip to content

Latest commit

Β 

History

History
83 lines (58 loc) Β· 1.59 KB

File metadata and controls

83 lines (58 loc) Β· 1.59 KB

πŸš€ Solana CRUD App

A full-stack decentralized application built with Solana, Anchor, and TypeScript that demonstrates basic CRUD operations on the blockchain.

✨ Features

  • πŸ”— Solana blockchain integration
  • βš“ Anchor framework for smart contract development
  • βš›οΈ Modern TypeScript frontend
  • 🎯 Simple and intuitive CRUD operations
  • πŸ”’ Secure wallet integration

πŸ› οΈ Prerequisites

  • Node.js v18.18.0+
  • Rust v1.77.2+
  • Anchor CLI v0.30.1+
  • Solana CLI v1.18.17+

πŸš€ Quick Start

  1. Clone and Install
git clone <repo-url>
cd <repo-name>
pnpm install
  1. Start Development
pnpm dev

πŸ“¦ Project Structure

πŸ¦€ Anchor Program (/anchor)

The Solana smart contract written in Rust using the Anchor framework.

Key Commands

# Generate new program ID
pnpm anchor keys sync

# Build the program
pnpm anchor-build

# Start local validator
pnpm anchor-localnet

# Run tests
pnpm anchor-test

# Deploy to devnet
pnpm anchor deploy --provider.cluster devnet

πŸ“ After running anchor keys sync, remember to update the program ID in anchor/lib/counter-exports.ts

🌐 Web App (/web)

React-based frontend application for interacting with the Solana program.

Key Commands

# Start development server
pnpm dev

# Build for production
pnpm build

🀝 Contributing

Contributions are welcome! Feel free to submit a Pull Request.

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Solana Foundation
  • Anchor Framework
  • React Community