Overview
Chapi Assistant streamlines project creation by cloning template repositories, customizing the structure with your project name, and initializing Git version control - all in a single workflow.Project creation uses the
CreateProjectUseCase (CreateProjectUseCase.cs:30) which orchestrates cloning, renaming, and Git initialization.How It Works
The project creation process follows these steps:Creating a Project
- Basic Creation
- With Remote Repository
- Progress Tracking
Create a new project from a template without remote repository:
The
ProjectName will be used to rename all template references throughout the codebase.Request Parameters
The name for your new project. Used to rename template files and namespaces.
The directory where the project folder will be created.
Git URL of the template repository to clone.
Optional remote repository URL to associate with the new project.
Template Customization
The template service automatically renames:Files & Folders
- Solution files (.sln)
- Project files (.csproj)
- Directory names
- File names
Code Content
- Namespaces
- Assembly names
- Class references
- Configuration values
Error Handling
Common Errors
Common Errors
Directory Already Exists
Directory Already Exists
Error:
El directorio ya existe: C:\Projects\MyNewAppSolution: Choose a different project name or delete the existing directory.Clone Failed
Clone Failed
Error: Clone operation failsPossible Causes:
- Invalid template URL
- Network connectivity issues
- Authentication required
Template Rename Failed
Template Rename Failed
Error: Template renaming failsPossible Causes:
- File locks from IDE or file explorer
- Insufficient permissions
Result Structure
Success: Returns the full path to the created project directory.
What Happens Next
After successful creation:- Project is registered in Chapi’s workspace manager
- Git repository is initialized with no commits
- Remote is configured (if RemoteUrl provided)
- Project is ready for code generation and development
Best Practices
Template Selection
Use templates that match your architecture style (Clean Architecture, DDD, etc.)
Naming Conventions
Use PascalCase for project names to match C# conventions
Remote Repository
Create the remote repository before project creation for seamless setup
Directory Organization
Keep all projects in a consistent parent directory structure
Related Features
Workspace Management
Learn how to manage multiple projects in Chapi
Git Management
Configure Git settings and manage version control
Code Generation
Generate modules and code in your new project