Generative-Hub-App Tailwind Templates

Generative Hub App

Generative Hub App: Powered by Forma NFTs

Generative Hub App: Powered by Forma NFTs

A decentralized platform for managing and securing NFT using blockchain technology and zero-knowledge proofs.

🌟 Overview

Leveraging onchain data: Generative art will use different types of onchain data such as:

Transaction hashes. Wallet addresses. These data will influence the resulting image generated by the algorithm. Specific technology: Forma provides the ability to compile custom metadata, to be stored on-chain. Create new inputs for generative algorithms.

For example, NFTs with specific attributes may have a higher probability of generating rare works from a collection.

πŸ—οΈ Architecture

The project consists of two components:

Frontend (Client)

  • Built with Nextjs
  • Use App router for routing
  • Integrates with Thirdweb for wallet connection
  • Modern UI with Tailwind CSS and Shadcn
  • TypeScript for type safety

Backend (Server)

  • Written with TypeSrcipt
  • Uses Api router powered by Nextjs
  • MongoDB database with MySQL
  • JWT-based authentication

πŸ“ Folder Structure

root/
β”œβ”€β”€ frontend                 # Client
β”‚   β”œβ”€β”€ app/                 # Frontend React application
β”‚   β”‚   β”œβ”€β”€ [locale]/        # Source code for the frontend
β”‚   β”‚   └── api/             # API routes and handlers
β”‚   β”œβ”€β”€ components/          # Reusable React components
β”‚   β”‚   β”œβ”€β”€ common/          # Common component
β”‚   β”‚   β”œβ”€β”€ form/            # Form field
β”‚   β”‚   β”œβ”€β”€ layout/          # Main layout
β”‚   β”‚   β”œβ”€β”€ nft/             # NFT listing
β”‚   β”‚   β”œβ”€β”€ sale-info/       # NFT sale info
β”‚   β”‚   β”œβ”€β”€ skeleton/        # Skeleton placeholder
β”‚   β”‚   β”œβ”€β”€ theme/           # Theme Providers
β”‚   β”‚   β”œβ”€β”€ thirdweb/        # Thirdweb custom component
β”‚   β”‚   β”œβ”€β”€ token/           # Token UI
β”‚   β”‚   └── ui/              # Common UI application
β”‚   β”œβ”€β”€ contracts/           # Process Contracts
β”‚   β”œβ”€β”€ font/                # Fonts style for application
β”‚   β”œβ”€β”€ hooks/               # Custom React hooks
β”‚   β”œβ”€β”€ i18n/                # i18 providers
β”‚   β”œβ”€β”€ lib/                 # Helper functions
β”‚   β”œβ”€β”€ messages/            # Messages for i18n
β”‚   β”œβ”€β”€ public/              # Static assets
β”‚   β”œβ”€β”€ styles/              # Style of Frontend application
|   β”œβ”€β”€ .env.example         # Example environment file to guide setup
|   β”œβ”€β”€ package.json         # Package of project
β”‚   └── types/               # Types
β”œβ”€β”€ backend                  # Server
|   β”œβ”€β”€ artifacts            # Stores build files or smart contract-related artifacts
|   β”œβ”€β”€ cache                # Stores temporary cache data to optimize performance
|   β”œβ”€β”€ config               # Contains configuration files for the project
|   β”œβ”€β”€ contracts            # Holds smart contracts for blockchain development
|   β”œβ”€β”€ node_modules         # Installed npm libraries (auto-generated)
|   β”œβ”€β”€ scripts              # Includes automation scripts or deployment scripts for smart contracts
|   β”œβ”€β”€ src                  # Main source code directory
|   β”‚   β”œβ”€β”€ controllers      # Handles business logic for API requests (Controller Layer)
|   β”‚   β”œβ”€β”€ middleware       # Middleware functions for request validation and processing
|   β”‚   β”œβ”€β”€ models           # Defines database models (ORM)
|   β”‚   β”œβ”€β”€ routes           # API routing configuration (Router Layer)
|   β”‚   β”œβ”€β”€ services         # Business logic and services for handling operations
|   β”‚   β”œβ”€β”€ uploads          # Stores temporarily uploaded files (if file upload feature exists)
|   β”‚   β”œβ”€β”€ utils            # Utility functions used across the project
|   β”‚   └── index.js         # Main entry point for the application
|   β”œβ”€β”€ test                 # Contains test scripts for smart contracts and APIs
|   β”‚   β”œβ”€β”€ Collection.js    # Tests for the Collection smart contract
|   β”‚   └── Token.js         # Tests for the Token smart contract
|   β”œβ”€β”€ .env.example         # Example environment file to guide setup
|   β”œβ”€β”€ .gitignore                                      # Specifies files and directories to ignore in Git commits
|   β”œβ”€β”€ APP_GENERATE_HUB_TEST.postman_collection.json   # Postman API collection for testing endpoints
|   β”œβ”€β”€ deployedCollectionContract.json                 # Stores deployed smart contract information
|   β”œβ”€β”€ GHA_SQL.sql                                     # SQL file, possibly for database structure or sample data
|   β”œβ”€β”€ hardhat.config.js    # Hardhat configuration file for Ethereum smart contract development
|   β”œβ”€β”€ package-lock.json    # Manages exact versions of installed dependencies
|   └── package.json         # Manages dependencies and project metadata
└── readme.md                # Readme

πŸ“‹ Prerequisites

  • Node.js
  • MongoDB
  • MySQL 8.0

πŸš€ Getting Started

Clone the Repository

git clone https://github.com/Axyl1410/Generative-Hub-App
cd Generative-Hub-App

Frontend Setup

1. Navigate to Frontend Directory

cd frontend

2. Install Dependencies

Use npm or pnpm to install the required packages:

npm i  # Using npm
# or
pnpm i  # Using pnpm

3. Run the Development Server

Start the frontend development server with:

npm run dev  # Using npm
# or
pnpm dev  # Using pnpm

The frontend will be available at http://localhost:3000


Backend Setup

1. Navigate to Backend Directory

cd backend

2. Install Dependencies

npm i

3. Configure Environment Variables

Ensure you have a .env file set up in the backend directory.

4. Start the Backend Server

Run the backend development server with:

npm run dev

The backend will be available at http://localhost:5000


πŸ› οΈ Tech Stack

Frontend

  • React 19
  • Nextjs 15
  • TypeScript
  • Thirdweb
  • Tailwind CSS
  • Shadcn
  • Framer Motion

Backend

  • MongoDB
  • Expressjs
  • MySql
  • Api router
  • Forma NFTs Protocol
  • Axios

    πŸš€ Technology Stack & Partner Integration

    Using FORMA Technology

    We utilize FORMA technology to optimize smart contract interactions and reduce gas fees. This integration ensures:
  • Low gas fees: Minimizing transaction costs for users.
  • Seamless smart contract execution: Enhancing performance and usability.
  • Security and scalability: Providing a stable and secure environment for NFT transactions.

Our platform is designed to fully leverage FORMA’s capabilities while maintaining a user-friendly experience.


βœ… Additional Notes

  • Ensure you have Node.js v18+ and npm/pnpm installed.
  • Some libraries may require a specific version of Node.js to function properly.
  • If you encounter errors, check for missing dependencies and ensure your environment variables are correctly set up.

πŸš€ Future Plans

We are actively working on improving UI and securing accounts and databases.

Technical Enhancements:

  • Ensure efficient on-chain metadata processing without increasing costs.
  • Add more new types of contracts and have supply per token.
  • Upgrade AI for generative image processing.

User Experience Improvements:

  • Build an interface that is intuitive enough for non-tech artists.
  • Implement AI-powered chatbots for users to ask about NFTs, get recommendations, event updates, and search for top-ranked users.

Competitive Market Strategy:

  • Compete with other innovative NFT platforms.
  • Enhance AI capabilities to improve generative image models.

Stay tuned for updates on our development progress!

πŸ‘₯ About Us

We are a team of software engineers students specializing in Web3 and Web2 development, with a focus on:

  • Designing systems that are light yet powerful
  • Blending technical expertise with innovative design to craft engaging digital experiences
  • build user-friendly interfaces that not only look great but also function

πŸ”Ž Learn More

To learn more about Next.js, take a look at the following resources:


🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Made with ❀️ by the Generative Hub App Team

Image Demo Website

Top categories

Loading Svelte Themes