- Live demo - auth-solana-react.netlify.app
Auth Solana React App is a React application that enables wallet-based authentication using Web3 Solana. Users can connect their Solana wallets (e.g., Phantom) to log in and manage their authentication status within the app. There are also demo options: demo payment and receiving NFT.
- Node.js (version 21 or higher)
- npm
- Clone the repository:
git clone https://github.com/alexandr-kazakov/auth-solana-react.git
- Navigate to the project directory:
cd auth-solana-react - Install dependencies:
npm install
- Start the application in development mode:
npm run dev
- To create a production build:
npm run build
To interact with Solana:
- Install a Solana wallet (e.g., Phantom) in your browser.
- Ensure your wallet is connected to the Solana network (e.g., Devnet or Mainnet).
See .env.example
Create .env file in the project root near the env.example and write the config from .env.example on it.
VITE_RPC_URL = Solana RPC URL (e.g. https://mainnet.helius-rpc.com/?api-key=XXX)
VITE_WALLET_RECIPIENT = A wallet recipient address string for demo payment option (e.g. 5G7Hmo99vrSFvvPEFS4iGTyjhTtqUUAqD3HdHFuA3g9V)
VITE_BACKEND_URL = A backend URL for demo NFT option (e.g. http://localhost:3001)
- Author - Alexandr Kazakov
- Website - https://alexkazakov.info
Auth Solana React App is an MIT-licensed open source project, you can say thanks here:
Auth Solana React App is MIT licensed.