Skip to content

everbee7/cryptogpt-io

Repository files navigation

CryptoGPT - AI-Powered Cryptocurrency Trading Platform

Advanced AI-powered cryptocurrency trading platform. Leverage cutting-edge algorithms and machine learning for optimal trading strategies.

πŸ“‹ Requirements

Node.js

  • Node.js: 20.14.0 (required)
  • Package Manager: Yarn (recommended) or npm

⚠️ Note: This project requires Node.js version 20.14.0. Make sure you have the correct version installed before proceeding.

Check your Node version

node --version

If you need to install or switch Node versions, consider using:

  • nvm (Node Version Manager)
  • fnm (Fast Node Manager)

πŸš€ Getting Started

Installation

Using Yarn (Recommended)

# Install dependencies
npm install

# Start development server
npm run dev

The application will be available at http://localhost:8083

Using NPM

# Install dependencies
npm install
# OR if you encounter peer dependency issues:
npm install --legacy-peer-deps

# Start development server
npm run dev

πŸ“œ Available Scripts

  • npm run dev - Start development server on port 8083
  • npm run start - Start production server on port 8083
  • npm run build - Build the application for production
  • npm run lint - Run ESLint to check code quality
  • npm run lint:fix - Automatically fix ESLint issues
  • npm run prettier - Format code using Prettier
  • npm run ts - Run TypeScript type checking
  • npm run ts:watch - Run TypeScript type checking in watch mode
  • npm run rm:all - Remove all build artifacts and node_modules
  • npm run re:start - Clean install and start development server
  • npm run re:build - Clean install and build for production

πŸ› οΈ Tech Stack

Core

  • Next.js 14.0.4 - React framework
  • React 18.2.0 - UI library
  • TypeScript 5.3.3 - Type safety

UI & Styling

  • Material-UI (MUI) 5.14.20 - Component library
  • Tailwind CSS 3.4.1 - Utility-first CSS
  • Emotion - CSS-in-JS
  • Framer Motion - Animation library

Backend & Database

  • Supabase - Backend as a Service (BaaS)
  • Trigger.dev - Background jobs and cron tasks

Blockchain & Web3

  • wagmi 2.12.7 - React Hooks for Ethereum
  • viem 2.x - TypeScript Ethereum library
  • ethers 6.13.0 - Ethereum library
  • @metamask/sdk-react - MetaMask integration
  • @web3modal/wagmi - Web3Modal integration

AI & Machine Learning

  • OpenAI 4.53.2 - AI capabilities

Payment Processing

  • Stripe 16.2.0 - Payment processing

Additional Libraries

  • Axios - HTTP client
  • React Query - Data fetching
  • Zustand - State management
  • React Hook Form - Form management
  • i18next - Internationalization
  • ApexCharts - Charting library
  • Recharts - Charting library
  • And many more...

πŸ” Environment Variables

Create a .env.local file in the root directory with the following variables:

# Supabase Configuration
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
NEXT_PUBLIC_SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key
NEXT_PUBLIC_SUPABASE_JWT_SECRET=your_supabase_jwt_secret

# UI review
NEXT_PUBLIC_ENABLE_DEMO_USER=true

# Add other environment variables as needed

⚠️ Important: Never commit .env.local or any environment files to version control. They are already included in .gitignore.

πŸ“ Project Structure

root/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/              # Next.js app router pages
β”‚   β”‚   β”œβ”€β”€ api/          # API routes
β”‚   β”‚   β”œβ”€β”€ auth/         # Authentication pages
β”‚   β”‚   β”œβ”€β”€ dashboard/    # Dashboard pages
β”‚   β”‚   └── home/         # Home page
β”‚   β”œβ”€β”€ components/       # Reusable UI components
β”‚   β”œβ”€β”€ sections/         # Page sections
β”‚   β”œβ”€β”€ layouts/          # Layout components
β”‚   β”œβ”€β”€ theme/            # Theme configuration
β”‚   β”œβ”€β”€ hooks/            # Custom React hooks
β”‚   β”œβ”€β”€ lib/              # Utility libraries
β”‚   β”œβ”€β”€ routes/           # Route configuration
β”‚   β”œβ”€β”€ store/            # State management
β”‚   β”œβ”€β”€ types/            # TypeScript type definitions
β”‚   β”œβ”€β”€ utils/            # Utility functions
β”‚   └── trigger/          # Trigger.dev jobs
β”œβ”€β”€ public/               # Static assets
β”œβ”€β”€ .next/                # Next.js build output (generated)
└── node_modules/         # Dependencies (generated)

πŸ”§ Configuration

Next.js Configuration

  • Port: 8083
  • Trailing slash: Enabled
  • Image domains: Configured in next.config.js

TypeScript Configuration

  • Strict mode: Enabled
  • Target: ES5
  • Module: ESNext

ESLint Configuration

  • Airbnb configuration
  • TypeScript support
  • Prettier integration

🚒 Deployment

Build for Production

npm run build

Start Production Server

npm run start

πŸ“ Development Guidelines

  1. Code Style: Follow the ESLint and Prettier configurations
  2. Type Safety: Always use TypeScript types
  3. Components: Use functional components with hooks
  4. State Management: Use Zustand for global state
  5. API Routes: Use Next.js API routes in src/app/api/
  6. Styling: Prefer Material-UI components with custom styling when needed

🀝 Contributing

  1. Create a feature branch
  2. Make your changes
  3. Run npm run lint and npm run ts to check for errors
  4. Commit your changes
  5. Push to the branch
  6. Create a Pull Request

πŸ“„ License

This project is private and proprietary.

πŸ”— Links

πŸ“ž Support

For support and questions, please contact the development team.


Built with ❀️ using Next.js, React, and TypeScript

About

build using Nextjs Tailwind, MUI, Glass Morphism Design, Desktop/Mobile Full Responsive for CryptoGPT.IO

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors