ice-felix-starter
Version:
ICE Felix Starter - Complete development environment installer for Laravel, Flutter, and Supabase projects
198 lines (144 loc) ⢠5.53 kB
Markdown
# ICE Felix Starter š
**Complete development environment installer for Laravel, Flutter, and Supabase projects**
[](https://www.npmjs.com/package/ice-felix-starter)
[](https://opensource.org/licenses/MIT)
A powerful CLI installer that sets up a complete full-stack development environment with Laravel backend, Flutter frontend, and Supabase database - all configured and ready to use!
## šÆ What You Get
- **Laravel Backend** - PHP API with MySQL database
- **Flutter Frontend** - Cross-platform web and mobile app
- **Supabase Database** - Real-time database with authentication
- **Docker Services** - MySQL and Redis containers
- **Environment Configuration** - Automated .env file setup
- **Git Integration** - Repository cloning and configuration
## š¦ Installation
### Global Installation (Recommended)
```bash
npm install -g ice-felix-starter
```
### One-time Run (No Installation)
```bash
npx ice-felix-starter
```
## š Usage
After installation, simply run:
```bash
ice-felix
```
Or with the full name:
```bash
ice-felix-starter
```
The installer will guide you through:
1. **System Requirements Check** - Verifies required tools
2. **Project Configuration** - App name, domain, credentials
3. **Repository Setup** - Clones Laravel and Flutter projects
4. **Supabase Integration** - Sets up database and functions
5. **Docker Configuration** - Prepares container services
6. **Environment Setup** - Generates configuration files
## š ļø Prerequisites
### Required Tools
- **Git** - Version control
- **Python 3.8+** - CLI runtime
- **Docker** - Container platform (for Supabase functions)
### Optional Tools (Auto-detected)
- **PHP & Composer** - Laravel development
- **Flutter** - Mobile app development
- **Supabase CLI** - Database management
## š Features
### ā
Automated Setup
- **Smart System Detection** - Checks for required tools
- **Interactive Configuration** - Guided setup process
- **Docker Integration** - Automatic container setup
- **Environment Generation** - Complete .env file creation
### ā
Supabase Integration
- **Database Migrations** - Automatic deployment
- **Edge Functions** - TypeScript serverless functions
- **Authentication Setup** - User management ready
- **Real-time Features** - Live data synchronization
### ā
Development Ready
- **Laravel API** - RESTful backend with MySQL
- **Flutter App** - Cross-platform frontend
- **Docker Compose** - Multi-container orchestration
- **Git Repositories** - Version control integration
## šļø Configuration Options
The installer will prompt for:
- **Project Name** - Your application identifier
- **Installation Directory** - Where to create the project
- **Domain Address** - Your app's URL
- **Admin Credentials** - Initial admin user
- **API Keys** - Supabase and external service keys
## š Project Structure
```
your-project/
āāā backend/ # Laravel API
ā āāā app/ # Application code
ā āāā database/ # Migrations & seeds
ā āāā .env # Environment config
āāā frontend/ # Flutter app
ā āāā lib/ # Dart source code
ā āāā assets/ # Images & resources
ā āāā pubspec.yaml # Dependencies
āāā cloud/ # Supabase project
ā āāā supabase/ # Database & functions
ā ā āāā functions/ # Edge functions
ā ā āāā migrations/ # Database schema
ā āāā config.toml # Supabase config
āāā docker-compose.yml # Container orchestration
```
## š³ Docker Support
The installer includes smart Docker integration:
- **Automatic Detection** - Checks if Docker is running
- **Function Deployment** - Supabase edge functions require Docker
- **Graceful Fallback** - Clear instructions if Docker unavailable
- **Manual Options** - Commands for manual deployment
## š§ Advanced Usage
### Manual Python Execution
If you prefer to run the Python script directly:
```bash
# Clone the repository
git clone https://github.com/ICE-Felix/ice-felix-starter.git
cd ice-felix-starter
# Install dependencies
pip install -r requirements.txt
# Run installer
python3 install_cli.py
```
### Development Mode
```bash
# Install in development mode
git clone https://github.com/ICE-Felix/ice-felix-starter.git
cd ice-felix-starter
npm install
npm start
```
## š Troubleshooting
### Common Issues
**Command not found: ice-felix**
```bash
# Reinstall globally
npm uninstall -g ice-felix-starter
npm install -g ice-felix-starter
```
**Python not found**
```bash
# Install Python 3.8+
# macOS: brew install python3
# Ubuntu: sudo apt install python3
# Windows: Download from python.org
```
**Docker not running**
```bash
# Start Docker Desktop
# The installer will guide you through this
```
## š Support
- **Issues**: [GitHub Issues](https://github.com/ICE-Felix/ice-felix-starter/issues)
- **Documentation**: [Wiki](https://github.com/ICE-Felix/ice-felix-starter/wiki)
- **Website**: [icefelix.com](https://icefelix.com)
## š¤ Contributing
We welcome contributions! Please see our [Contributing Guidelines](CONTRIBUTING.md).
## š License
MIT License - see [LICENSE](LICENSE) file for details.
---
**Made with ā¤ļø by the ICE Felix Team**
*Transform your development workflow with a complete full-stack starter in minutes!*