8000 GitHub - Girma35/react-supabase-crypto
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Girma35/react-supabase-crypto

Repository files navigation

react-supabase-crypto 📊

A sleek and modern web application built with React and Supabase to rank cryptocurrencies based on user-submitted 24-hour trading volumes.


Tech Stack

React TypeScript Supabase TailwindCSS Vite MIT License


📝 Overview

image

react-supabase-crypto is a simple yet powerful application that allows users to submit cryptocurrency names and their 24-hour trading volumes. The data is stored in a Supabase database and displayed in a clean, responsive UI.

🔧 Key Technologies:

  • React – For building a dynamic and responsive user interface.
  • TypeScript – For type-safe and maintainable code.
  • Supabase – For real-time database management.
  • Tailwind CSS – For utility-first styling.
  • Vite – For a fast development and build experience.

✨ Features

  • Crypto Submission Form: Input a cryptocurrency name and 24-hour volume.
  • 🔐 Supabase Integration: Secure database storage and retrieval from crypto_ranking.
  • Live State Management: React hooks (useState, useEffect) for dynamic updates.

🛠️ Installation

Step 1: Clone the repository

git clone https://github.com/Girma35/react-supabase-crypto.git
cd react-supabase-crypto

Step 2: Install dependencies

npm install

Step 3: Setup environment variables

Create a .env file in the root directory and add:

VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key

Step 4: Start the development server

npm run dev

Then open http://localhost:5173 in your browser.


🚀 Usage

  1. Access the app at http://localhost:5173.
  2. Enter the cryptocurrency name (e.g., Bitcoin).
  3. Input the 24-hour trading volume (e.g., 25000000).
  4. Click the "Submit" button.
  5. See your coin ranked based on volume in real-time.

📂 Folder Structure

react-supabase-crypto/
├── public/                 # Static assets
├── src/                    # Source code
│   ├── components/         # Reusable React components
│   ├── lib/                # Supabase client setup
│   ├── styles/             # Tailwind CSS and global styles
│   ├── App.tsx             # Main app component
│   └── main.tsx            # Entry point
├── .env                    # Environment variables
├── package.json            # Project dependencies
├── tsconfig.json           # TypeScript configuration
└── README.md               # Project documentation

📸 Screenshots

📷 Form for submitting cryptocurrency data
📷 Table displaying submitted cryptocurrency rankings

(Add actual screenshot images using markdown image syntax if available)


🤝 Contributing

Contributions are welcome! Here's how to get started:

# 1. Fork the repository
# 2. Create a feature branch
git checkout -b feature/your-feature

# 3. Make changes and commit
git commit -m "Add your feature"

# 4. Push the branch
git push origin feature/your-feature

# 5. Open a Pull Request

Please follow coding standards and add tests where applicable.


📜 License

This project is licensed under the MIT License. See the LICENSE file for more info.


📬 Contact

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0