ComHub is a web application that serves as a central hub for managing and discovering Commune AI modules. It provides a user-friendly interface to interact with modules and includes features like module search, creation, and management.
- Docker
- Git
- Clone the repository:
git clone https://github.com/commune-ai/app.git
cd app- Build the Docker image:
./run/build.sh # make build- Start the container:
./run/start.sh # make start or make upThis will:
- Build the Docker image with all required dependencies
- Start the container with the necessary port mappings
- Mount required volumes for persistence
The application consists of two main parts:
- Frontend (Next.js app running on port 3000)
- Backend (FastAPI server running on port 8000)
To run the development environment:
# Enter the container
./run/enter.sh # make enter
# Start the application
./run/app.sh # make appThe application is built with:
- Frontend: Next.js, TailwindCSS, TypeScript
- Backend: FastAPI, Python
- Storage: Local file system for module data
- Container: Docker
.
βββ app/ # Frontend application
β βββ components/ # React components
β βββ modules/ # Module-related pages
β βββ wallet/ # Wallet implementation
βββ api/ # Backend API
β βββ api.py # Main API implementation
β βββ utils.py # Utility functions
βββ run/ # Shell scripts for running the application
β βββ app.sh # Start the application
β βββ build.sh # Build Docker image
β βββ enter.sh # Enter container
β βββ start.sh # Start container
β βββ stop.sh # Stop container
βββ Dockerfile # Docker configuration
The application can be configured through environment variables:
API_PORT: Backend API port (default: 8000)APP_PORT: Frontend application port (default: 3000)
- Module discovery and search
- Module creation and management
- Wallet integration
- Real-time module status
- Grid and table views for modules
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built on top of Commune AI
- Inspired by the need for a central hub for AI modules
This README provides:
1. Clear installation instructions using Docker
2. Project structure overview
3. Configuration options
4. Development setup instructions
5. Feature list
6. Contributing guidelines