create-flutter-forge
v2.0.0
Published
Forge a production-ready Flutter foundation with GetX, feature architecture, SQLite, and named routes.
Maintainers
Readme
Flutter Forge
Forge a production-ready Flutter foundation in one command.
Runs official flutter create, then scaffolds GetX, feature-based folders, named routes, SQLite, strict linting, .env config, and working sample screens — without Firebase.
npm create flutter-forge@latest my_app
cd my_app && flutter runPrerequisites
- Flutter SDK on your PATH
- Node.js 18+
Quick start
# Interactive
npm create flutter-forge@latest my_shop
# Defaults (CI / fast)
npm create flutter-forge@latest my_shop -- --yes --org com.mycompany --platforms android,ios,web
# Add a feature later
cd my_shop
npx flutter-forge feature cart --with-modelDocumentation
| Guide | What you'll learn |
|-------|-------------------|
| CLI reference | All commands, flags, subcommands, troubleshooting |
| Architecture | How every piece fits: main → routes → features → data |
| Customization | Edit from splash → onboarding → features → SQLite/API |
| Existing projects | Overlay Forge on flutter create apps, incremental use |
| Publishing | Professional npm publish checklist |
Generated apps also include FEATURES.md and README.md in the project root.
Commands at a glance
| Command | Description |
|---------|-------------|
| npm create flutter-forge@latest [name] | New project (recommended) |
| npx flutter-forge create [name] | Same, via flutter-forge binary |
| npx flutter-forge feature <name> | Scaffold feature + wire routes |
| npx flutter-forge generate model <name> | Standalone model with JSON helpers |
| npx flutter-forge generate repository <name> | Repository + DAO stub + DI wiring |
Create flags: --yes, --org, --platforms, --no-notes, --dry-run, --skip-flutter-create
Feature flags: --with-model, --with-repository, --with-service, --route, --no-binding
Details → docs/CLI.md
What you get
- Official Flutter android / ios / web / desktop folders (from
flutter create) - Base classes —
BaseController,BaseRepository,BaseViewwith loading-state pattern - Feature modules —
bindings/,controllers/,views/, optionalmodels/,repositories/,services/ - Named routes —
AppRoutes+AppPages+GetMaterialApp - Themes — Material 3 light/dark/system, persisted in SQLite
- SQLite —
DatabaseHelper, DAOs, typed repositories (Settings,Home, optionalNotes) - HTTP —
ApiServicewrapper (httppackage) withAppExceptionhandling - Core utilities — validators, formatters, popups, logger, exceptions, device utils
.env+AppConfig— safe API key patternflutter_lints— strictanalysis_options.yamlfor beginners- Demo flow — splash → onboarding → shell (category grid home / typed notes explore / settings)
Customize your app (short path)
- Splash copy →
lib/core/constants/app_texts.dart - Colors / theme →
lib/core/constants/app_colors.dart,lib/core/theme/ - New screen →
npx flutter-forge feature orders - API URL →
.env+lib/core/config/app_config.dart
Full walkthrough → docs/CUSTOMIZATION.md
Development (this repo)
git clone https://github.com/salim1334/flutter-forge.git # update URL after you publish
cd flutter-forge
npm install
npm run build
node bin/flutter-forge.js --helpLicense
MIT — see LICENSE
