2.7 KiB
2.7 KiB
A modern web application built with TanStack Router, React, and Solana integration, featuring authentication via Crossmint and AI capabilities.
๐ Features
- Authentication: Secure wallet authentication powered by Crossmint
- Solana Integration: Built with Solana Agent Kit for blockchain interactions
- AI Capabilities: OpenAI integration for intelligent features
- Modern UI: Built with Radix UI components and Tailwind CSS
- Type Safety: Full TypeScript support
- Database: PostgreSQL with Drizzle ORM
- Routing: TanStack Router for type-safe routing
- Development Tools: Biome for linting and formatting
๐ ๏ธ Tech Stack
- Frontend: React 19, TanStack Router
- Authentication: Crossmint
- Blockchain: Solana Web3.js, Solana Agent Kit
- Styling: Tailwind CSS, Radix UI
- Database: PostgreSQL, Drizzle ORM
- AI: OpenAI SDK
- Development: TypeScript, Biome, Vinxi
๐ฆ Installation
- Clone the repository:
git clone https://github.com/yourusername/crossmint-solana-agent.git
cd crossmint-solana-agent
- Install dependencies:
pnpm install
- Set up environment variables:
Create a
.envfile in the root directory with the following variables:
VITE_CROSSMINT_SECRET=your_crossmint_secret
VITE_RPC_URL=your_solana_rpc_url
- Run database migrations:
pnpm db:generate
pnpm db:migrate
๐ Development
Start the development server:
pnpm dev
The application will be available at http://localhost:3000.
๐งน Linting and Formatting
Run linting:
pnpm lint
Fix linting issues:
pnpm lint:fix
๐ฆ Database Management
- Generate migrations:
pnpm db:generate - Run migrations:
pnpm db:migrate - Open database studio:
pnpm db:studio - Push schema changes:
pnpm db:push - Pull schema changes:
pnpm db:pull - Check schema:
pnpm db:check - Update schema:
pnpm db:up
๐๏ธ Project Structure
src/
โโโ components/ # React components
โโโ functions/ # Server-side functions
โโโ hooks/ # Custom React hooks
โโโ lib/ # Library code and utilities
โโโ routes/ # Application routes
โโโ styles/ # Global styles
โโโ utils/ # Utility functions
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
