Skip to content
/ loex Public

Loex is a CLI tool that lets you register and run your local frontend, backend, and database with a single command.

License

Notifications You must be signed in to change notification settings

kjunh972/loex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Loex - Local Development Environment Manager

Loex is a powerful CLI tool for managing local development environments. Easily start, stop, and manage Frontend, Backend, and Database services across multiple projects with simple commands.

✨ Features

  • πŸ”„ Multi-Project Management: Register and manage multiple projects
  • πŸš€ One-Command Launch: Start all services with a single command
  • πŸ” Auto-Detection: Automatically detects service types and suggests commands
  • 🎯 Service Isolation: Manage frontend, backend, and database services separately
  • πŸ“Š Process Monitoring: Track running services with PID management
  • πŸ“ Comprehensive Logging: Separate logs for each service
  • πŸ§™β€β™‚οΈ Interactive Setup: Wizard-guided project configuration

πŸ›  Installation

brew tap kjunh972/loex && brew install loex

For other installation methods, see GitHub Releases.

πŸ“¦ Updating

# Update to latest version
loex update

πŸš€ Quick Start

1. Initialize a Project

loex init myproject

2. Configure Services

# Auto-detect services (recommended)
cd /path/to/your/project
loex config detect myproject

# Interactive wizard
loex config wizard myproject

3. Start All Services

loex start myproject

4. Check Status

# Check all services status
loex status myproject

# View detailed project info with service status
loex list myproject

5. Stop Services

loex stop myproject

πŸ“š Command Reference

πŸ“‹ ν˜„μž¬ μ§€μ›ν•˜λŠ” 전체 λͺ…λ Ήμ–΄

κΈ°λ³Έ 관리:

  • loex init [project] - ν”„λ‘œμ νŠΈ μ΄ˆκΈ°ν™”
  • loex list / loex list [project] - ν”„λ‘œμ νŠΈ/μ„œλΉ„μŠ€ λͺ©λ‘
  • loex remove [project] - ν”„λ‘œμ νŠΈ μ‚­μ œ
  • loex rename [old] [new] - ν”„λ‘œμ νŠΈ 이름 λ³€κ²½

μ„œλΉ„μŠ€ μ„€μ •:

  • loex config detect [project] - μžλ™ 감지 (ꢌμž₯)
  • loex config wizard [project] - λŒ€ν™”ν˜• μ„€μ •
  • loex config [project] [service] [command] - μˆ˜λ™ μ„€μ •
  • loex config edit [project] [service] - κΈ°μ‘΄ μ„€μ • μˆ˜μ •
  • loex config delete [project] [service] - μ„œλΉ„μŠ€ μ‚­μ œ

μ„œλΉ„μŠ€ μ‹€ν–‰:

  • loex start [project] - λͺ¨λ“  μ„œλΉ„μŠ€ μ‹œμž‘
  • loex start [project] [service] - κ°œλ³„ μ„œλΉ„μŠ€ μ‹œμž‘
  • loex stop [project] - λͺ¨λ“  μ„œλΉ„μŠ€ 쀑지
  • loex stop [project] [service] - κ°œλ³„ μ„œλΉ„μŠ€ 쀑지
  • loex restart [project] - λͺ¨λ“  μ„œλΉ„μŠ€ μž¬μ‹œμž‘
  • loex status [project] - μ„œλΉ„μŠ€ μƒνƒœ 확인

μ‹œμŠ€ν…œ:

  • loex update - μ΅œμ‹  λ²„μ „μœΌλ‘œ μ—…λ°μ΄νŠΈ

Project Management

# Initialize a new project
loex init [project-name]

# List all projects
loex list

# Show detailed project info with service status
loex list [project-name]

# Remove a project
loex remove [project-name]

# Rename a project
loex rename [old-name] [new-name]

Service Configuration

# Auto-detect services in current directory (recommended)
loex config detect [project-name]

# Interactive configuration wizard
loex config wizard [project-name]

# Manual configuration
loex config [project-name] [service] [command]

# Edit existing service configuration 
loex config edit [project-name] [service]

# Delete service configuration 
loex config delete [project-name] [service]

Service Management

# Start all services
loex start [project-name]

# Start specific service
loex start [project-name] [service-name]

# Examples:
loex start myapp              # Start all services
loex start myapp frontend     # Start only frontend
loex start myapp backend      # Start only backend
loex start myapp db           # Start only database

# Stop all services
loex stop [project-name]

# Stop specific service
loex stop [project-name] [service-name]

# Restart all services 
loex restart [project-name]

# Check service status
loex status [project-name]

πŸ” Auto-Detection

Loex automatically detects common project types and suggests appropriate commands when using the config detect or config wizard commands.

πŸ’‘ Important: Run the command from your project's root directory to enable auto-detection. Loex analyzes files in the current directory to suggest the best commands for each service type.

Frontend Services

  • React: npm start (detects react in package.json)
  • React Native: npx react-native start
  • Vue.js: npm run dev (detects vue in dependencies)
  • Angular: npm start (detects @angular/core)
  • Next.js: npm run dev (detects next)

Backend Services

  • Go: go run main.go or go run .
  • Java/Spring: mvn spring-boot:run or ./gradlew bootRun
  • Python/Django: python manage.py runserver
  • Python/Flask: python app.py
  • Rust: cargo run
  • JAR files: java -jar [filename].jar

Database Services

  • Local MySQL: brew services start mysql (macOS) or sudo systemctl start mysql (Linux)
  • Local PostgreSQL: brew services start postgresql (macOS) or sudo systemctl start postgresql (Linux)
  • Docker Compose: docker-compose up -d
  • Docker MySQL: docker run -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password mysql:8.0
  • Docker PostgreSQL: docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=password postgres:15

πŸ”§ Configuration Examples

Example 1: React + Spring Boot + Local MySQL

# Initialize project
loex init webapp

# Auto-detect services (recommended)
cd /path/to/your/project
loex config detect webapp

# Start everything
loex start webapp

Example 2: E-commerce Project Setup

# Initialize and configure with wizard
loex init ecommerce
loex config wizard ecommerce

# Or use auto-detection (recommended)
cd /path/to/your/project
loex config detect ecommerce

Example 3: Manual Configuration

# Initialize project
loex init myapp

# Configure services manually
loex config myapp frontend "npm start"
loex config myapp backend "./gradlew bootRun"  
loex config myapp db "brew services start mysql"

# Start everything
loex start myapp

πŸ“‹ Additional Commands

System Management

# Update loex to latest version
loex update

# Check version information
loex version
loex -v

Service Status Display

When using loex list [project], you'll see service status indicators:

  • running ●: Service is currently running
  • stopped β—‹: Service is stopped
  • unknown ?: Status cannot be determined

Example output:

Project: myproject
Services: 3

  frontend: running ●
    Command: npm start
    Directory: /path/to/frontend

  backend: stopped β—‹
    Command: ./gradlew bootRun
    Directory: /path/to/backend

About

Loex is a CLI tool that lets you register and run your local frontend, backend, and database with a single command.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages