goLLM’s multi-file project generation allows you to create complete project structures with a single command. This feature is particularly useful for scaffolding new applications, libraries, or websites.
# Generate a new project
gollm generate "Create a Flask web application with user authentication" -o myapp
This will create a directory structure like:
myapp/
├── app.py
├── requirements.txt
├── static/
│ ├── css/
│ └── js/
├── templates/
│ ├── base.html
│ └── index.html
└── README.md
goLLM can generate various types of projects:
gollm generate "Create a FastAPI REST API with SQLAlchemy" -o myapi
gollm generate "Create a Python library for data validation" -o mylib
gollm generate "Create a command-line tool for file processing" -o mycli
gollm generate "Create a React frontend with FastAPI backend" -o fullstack
myapp/
├── app/ # Application package
│ ├── __init__.py
│ ├── models.py # Database models
│ ├── routes/ # Route handlers
│ │ ├── __init__.py
│ │ ├── auth.py
│ │ └── api.py
│ └── utils/ # Utility functions
├── tests/ # Test files
│ ├── __init__.py
│ └── test_app.py
├── static/ # Static files
│ ├── css/
│ ├── js/
│ └── images/
├── templates/ # HTML templates
│ ├── base.html
│ ├── index.html
│ └── auth/
│ ├── login.html
│ └── register.html
├── .env # Environment variables
├── .gitignore
├── requirements.txt # Python dependencies
├── README.md # Project documentation
└── app.py # Application entry point
mylib/
├── src/
│ └── mylib/ # Source package
│ ├── __init__.py
│ ├── core.py # Core functionality
│ └── utils/ # Utility modules
├── tests/ # Test files
│ ├── __init__.py
│ └── test_core.py
├── docs/ # Documentation
│ ├── index.md
│ └── api/
├── .gitignore
├── pyproject.toml # Build configuration
├── README.md
└── setup.py
You can explicitly specify the project type:
# Generate a FastAPI project
gollm generate "Create a FastAPI project" -o myapi --type fastapi
# Generate a React project
gollm generate "Create a React app" -o myapp --type react
Specify required dependencies in your prompt:
gollm generate "Create a project using FastAPI, SQLAlchemy, and Pydantic" -o myapi
Create custom project templates in ~/.gollm/templates/
:
~/.gollm/templates/
└── my-template/
├── template.json
├── /
│ ├── README.md
│ └── /
│ └── __init__.py
└── hooks/
└── post_generate.py
Use the template:
gollm generate --template my-template -o myproject
# Regenerate with more specific prompt
gollm generate "Create a complete Flask app with User model and authentication" -o myapp
# Check requirements.txt
cat myapp/requirements.txt
# Install missing dependencies
pip install -r myapp/requirements.txt
# Check the generated structure
tree myapp
# Regenerate with --verbose for more details
gollm generate "..." -o myapp --verbose
gollm generate "Create a data science project with Jupyter, pandas, and scikit-learn" -o datascience
gollm generate "Create a microservice with FastAPI, Redis, and Docker" -o myservice
gollm generate "Create a full-stack application with React frontend and FastAPI backend" -o fullstack