mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 09:13:08 +00:00
Merge pull request #513 from JZilla808/feature/tui-launcher
feat: add TUI launcher script for easy app startup
This commit is contained in:
35
README.md
35
README.md
@@ -28,6 +28,7 @@
|
|||||||
- [Quick Start](#quick-start)
|
- [Quick Start](#quick-start)
|
||||||
- [How to Run](#how-to-run)
|
- [How to Run](#how-to-run)
|
||||||
- [Development Mode](#development-mode)
|
- [Development Mode](#development-mode)
|
||||||
|
- [Interactive TUI Launcher](#interactive-tui-launcher-recommended-for-new-users)
|
||||||
- [Building for Production](#building-for-production)
|
- [Building for Production](#building-for-production)
|
||||||
- [Testing](#testing)
|
- [Testing](#testing)
|
||||||
- [Linting](#linting)
|
- [Linting](#linting)
|
||||||
@@ -161,6 +162,40 @@ npm run dev:electron:wsl:gpu
|
|||||||
npm run dev:web
|
npm run dev:web
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Interactive TUI Launcher (Recommended for New Users)
|
||||||
|
|
||||||
|
For a user-friendly interactive menu, use the built-in TUI launcher script:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Show interactive menu with all launch options
|
||||||
|
./start-automaker.sh
|
||||||
|
|
||||||
|
# Or launch directly without menu
|
||||||
|
./start-automaker.sh web # Web browser
|
||||||
|
./start-automaker.sh electron # Desktop app
|
||||||
|
./start-automaker.sh electron-debug # Desktop + DevTools
|
||||||
|
|
||||||
|
# Additional options
|
||||||
|
./start-automaker.sh --help # Show all available options
|
||||||
|
./start-automaker.sh --version # Show version information
|
||||||
|
./start-automaker.sh --check-deps # Verify project dependencies
|
||||||
|
./start-automaker.sh --no-colors # Disable colored output
|
||||||
|
./start-automaker.sh --no-history # Don't remember last choice
|
||||||
|
```
|
||||||
|
|
||||||
|
**Features:**
|
||||||
|
|
||||||
|
- 🎨 Beautiful terminal UI with gradient colors and ASCII art
|
||||||
|
- ⌨️ Interactive menu (press 1-3 to select, Q to exit)
|
||||||
|
- 💾 Remembers your last choice
|
||||||
|
- ✅ Pre-flight checks (validates Node.js, npm, dependencies)
|
||||||
|
- 📏 Responsive layout (adapts to terminal size)
|
||||||
|
- ⏱️ 30-second timeout for hands-free selection
|
||||||
|
- 🌐 Cross-shell compatible (bash/zsh)
|
||||||
|
|
||||||
|
**History File:**
|
||||||
|
Your last selected mode is saved in `~/.automaker_launcher_history` for quick re-runs.
|
||||||
|
|
||||||
### Building for Production
|
### Building for Production
|
||||||
|
|
||||||
#### Web Application
|
#### Web Application
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ services:
|
|||||||
- NODE_ENV=development
|
- NODE_ENV=development
|
||||||
- PORT=3008
|
- PORT=3008
|
||||||
- CORS_ORIGIN=http://localhost:3007
|
- CORS_ORIGIN=http://localhost:3007
|
||||||
|
- HUSKY=0
|
||||||
|
|
||||||
# Optional - restrict to specific directory within container
|
# Optional - restrict to specific directory within container
|
||||||
- ALLOWED_ROOT_DIRECTORY=${ALLOWED_ROOT_DIRECTORY:-/projects}
|
- ALLOWED_ROOT_DIRECTORY=${ALLOWED_ROOT_DIRECTORY:-/projects}
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ services:
|
|||||||
- NODE_ENV=development
|
- NODE_ENV=development
|
||||||
- PORT=3008
|
- PORT=3008
|
||||||
- CORS_ORIGIN=http://localhost:3007
|
- CORS_ORIGIN=http://localhost:3007
|
||||||
|
- HUSKY=0
|
||||||
|
|
||||||
# Optional - restrict to specific directory within container
|
# Optional - restrict to specific directory within container
|
||||||
- ALLOWED_ROOT_DIRECTORY=${ALLOWED_ROOT_DIRECTORY:-/projects}
|
- ALLOWED_ROOT_DIRECTORY=${ALLOWED_ROOT_DIRECTORY:-/projects}
|
||||||
@@ -112,6 +113,7 @@ services:
|
|||||||
- TEST_PORT=3007
|
- TEST_PORT=3007
|
||||||
- VITE_SKIP_ELECTRON=true
|
- VITE_SKIP_ELECTRON=true
|
||||||
- VITE_APP_MODE=3
|
- VITE_APP_MODE=3
|
||||||
|
- HUSKY=0
|
||||||
volumes:
|
volumes:
|
||||||
# Mount source code for live reload
|
# Mount source code for live reload
|
||||||
- .:/app:cached
|
- .:/app:cached
|
||||||
|
|||||||
1112
start-automaker.sh
Executable file
1112
start-automaker.sh
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user