Installation
Get the necessary tools and libraries set up for Axira AI integration
Prerequisites
Before getting started, make sure you have:
- • Node.js 16.0 or higher installed
- • A Solana wallet (Phantom, Solflare, or other supported wallet)
- • A basic understanding of JavaScript/TypeScript
- • A code editor (VS Code recommended)
Step 1: Create a New Project
Create a new JavaScript project using your preferred setup:
Using Create React App
bash
npx create-react-app axira-app cd axira-app
Using Vite
bash
npm create vite@latest axira-app -- --template react cd axira-app npm install
Step 2: Install Wallet Adapter
Install the Solana Wallet Adapter libraries for wallet integration:
bash
npm install @solana/wallet-adapter-react @solana/wallet-adapter-react-ui @solana/wallet-adapter-wallets @solana/web3.js
Step 3: Install Additional Dependencies
Install utility libraries and tools:
bash
npm install axios bs58
Step 4: Verify Installation
Create a simple test to ensure everything is installed correctly:
App.jsx
import { useWallet } from '@solana/wallet-adapter-react';
export default function App() {
const { connected, publicKey } = useWallet();
return (
<div>
<h1>Axira AI Setup</h1>
<p>Wallet Status: {connected ? 'Connected' : 'Not Connected'}</p>
{publicKey && <p>Wallet: {publicKey.toBase58()}</p>}
</div>
);
}Next Steps
Now that you have everything set up, you're ready to:
- • Read the Quickstart guide
- • Follow the Authentication guide
- • Explore the API reference