GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - thirdweb-example/smart-wallet-app

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
public
public
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.vercelignore
.vercelignore
 
 
README.md
README.md
 
 
env.example
env.example
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
postcss.config.js
postcss.config.js
 
 
tailwind.config.js
tailwind.config.js
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

Smart Wallet App

A modern, sleek web application that provides seamless email-based authentication with automatic smart wallet creation. Built with React, TypeScript, and Tailwind CSS, this app offers a comprehensive wallet management experience.

Demo live: https://smart-wallet-app-pcsj.vercel.app/

✨ Features

šŸ” Seamless Email Authentication

  • Simple Login: Users can login using just their email address
  • No Wallet Setup Required: Smart wallets are created automatically in the background
  • Secure Verification: Email-based verification code system
  • Session Management: Automatic token handling and storage

šŸ’¼ Smart Wallet Management

  • Automatic Creation: Smart wallets are created seamlessly during login
  • Wallet Information: View wallet addresses, creation dates, and account details
  • Profile Management: Connected profiles with verification status
  • Address Copying: Easy wallet address copying functionality

šŸ‘„ User Management

  • View All Users: Browse all registered users with pagination
  • Search Users: Find specific users by email, address, or ID
  • User Details: Comprehensive user information display
  • Admin Controls: Full user management capabilities

šŸŽØ Modern UI/UX

  • Ultra-Dark Theme: Sleek black and gray design
  • Glass-morphism Effects: Beautiful backdrop blur and transparency
  • Responsive Design: Works perfectly on all devices
  • Smooth Animations: Polished interactions and transitions

šŸš€ Quick Start

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn
  • Thirdweb API credentials

Installation

  1. Clone the repository

    git clone https://github.com/GiselleNessi/smart-wallet-app.git
    cd smart-wallet-app
  2. Install dependencies

    npm install
  3. Set up environment variables

    cp env.example .env.local

    Update .env.local with your Thirdweb credentials:

    REACT_APP_THIRDWEB_CLIENT_ID=your_client_id_here
    REACT_APP_THIRDWEB_SECRET_KEY=your_secret_key_here
  4. Start the development server

    npm start
  5. Open your browser Navigate to http://localhost:3000

šŸ”§ Configuration

Thirdweb API Setup

  1. Get API Credentials

    • Visit Thirdweb Dashboard
    • Create a new project
    • Copy your Client ID and Secret Key
  2. Configure Environment

    • Add your credentials to .env.local
    • Restart the development server

API Endpoints Used

  • POST /v1/auth/initiate - Start email authentication
  • POST /v1/auth/complete - Complete authentication with verification code
  • GET /v1/wallets/me - Get authenticated user's wallet information
  • GET /v1/wallets/user - Get user information (admin)

šŸ“± User Experience

Login Flow

  1. Enter Email: User enters their email address
  2. Receive Code: Verification code sent to email
  3. Enter Code: User enters the verification code
  4. Smart Wallet Created: Wallet is automatically created in the background
  5. Access Granted: User gains access to the application

Dashboard Features

  • Wallet Overview: View wallet address and smart wallet details
  • Account Information: Creation date, user type, and verification status
  • Connected Profiles: Email profiles with verification badges
  • User Management: Browse and search all users (admin feature)

šŸ› ļø Technical Stack

  • Frontend: React 18 with TypeScript
  • Styling: Tailwind CSS with custom dark theme
  • API: Thirdweb API integration
  • Build Tool: Create React App
  • State Management: React Hooks (useState, useEffect)
  • HTTP Client: Fetch API with comprehensive error handling

šŸ“ Project Structure

src/
ā”œā”€ā”€ components/          # React components
│   ā”œā”€ā”€ AuthForm.tsx    # Email authentication form
│   ā”œā”€ā”€ WalletInfo.tsx  # Wallet information display
│   └── UserManagement.tsx # User management interface
ā”œā”€ā”€ services/           # API services
│   └── thirdwebApi.ts  # Thirdweb API integration
ā”œā”€ā”€ types/              # TypeScript type definitions
│   └── thirdweb.ts     # API and component types
ā”œā”€ā”€ hooks/              # Custom React hooks
│   └── useLocalStorage.ts # Local storage management
ā”œā”€ā”€ utils/              # Utility functions
│   └── typeGuards.ts   # Runtime type validation
└── App.tsx             # Main application component

šŸŽØ Design System

Color Palette

  • Background: Pure black (#000000) to ultra-dark gray (#010409)
  • Cards: black/80 with black/60 for sections
  • Borders: dark-800/50 for subtle definition
  • Text: White primary, primary-500 for secondary
  • Accents: primary-600/700 for interactive elements

Typography

  • Headings: Bold, white text with drop shadows
  • Body: Primary colors with proper contrast
  • Code: Monospace font for addresses and technical data

šŸ”’ Security Features

  • Token Management: Secure JWT token handling
  • Session Persistence: Automatic logout on refresh for security
  • Input Validation: Comprehensive form validation
  • Error Handling: Graceful error management with user feedback
  • API Security: Proper header authentication

šŸ“Š Logging & Debugging

The application includes comprehensive logging for development and debugging:

  • API Calls: All requests and responses logged
  • Authentication Flow: Step-by-step login process tracking
  • Error Handling: Detailed error information
  • User Actions: Button clicks and form submissions

šŸš€ Deployment

Build for Production

npm run build

Deploy to Vercel

npm install -g vercel
vercel --prod

Deploy to Netlify

npm run build
# Upload build/ folder to Netlify

šŸ¤ Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

šŸ“„ License

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

šŸ™ Acknowledgments

  • Thirdweb for the powerful API
  • React for the amazing framework
  • Tailwind CSS for the utility-first styling
  • TypeScript for type safety

šŸ“ž Support

If you have any questions or need help, please:

  • Open an issue on GitHub
  • Check the Thirdweb Documentation
  • Review the API logs in the browser console

Built with ā¤ļø using Thirdweb API

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

4 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.