Prerequisites
Before starting, ensure you have completed the Installation guide and configured Git with your user identity.
Verify Installation
Open Chapi Assistant and verify it launches successfully. The main window should display with tabs for Changes, History, Assistant, and Releases.
Create Your First Project
Open Project Creation Dialog
In Chapi Assistant, navigate to the workspace panel and click New Project or use the project creation button in the toolbar.
Configure Project Details
Fill in the project creation form:
Name for your new project (e.g., “MyApi”)
Directory where the project will be created (e.g.,
C:\Projects)Git repository URL for the base template. Default is often pre-configured (e.g.,
https://gitlab.com/net-core2/api-base.git)Optional: Your new Git remote repository URL (e.g., GitHub or GitLab repo)
Watch the Magic Happen
Click Create Project and watch the progress log. Chapi will:
What's happening under the hood?
What's happening under the hood?
The Source:
CreateProjectUseCase.cs executes these operations:CreateProjectUseCase.cs:30-73Make Your First Commit
View Changes
Switch to the Changes tab in Chapi Assistant. You’ll see all the renamed files ready to commit.
Generate AI Commit Message
Instead of writing a commit message manually, click the AI Generate button. Chapi will analyze your changes and create a meaningful commit message:
Generate Your First Module
Now let’s add a complete CRUD module with Chapi’s code generation:Open Code Generation
Click the Assistant tab and select Generate Module or use the module generator in the toolbar.
Configure Module
Enter module details:
- Module Name:
Products - Database:
Postgres(orSybase)
Review Generated Code
Chapi generates code across all Clean Architecture layers:API Layer (Application Layer, Domain Layer, and Infrastructure Layer are also generated with complete CRUD implementations.
Controllers/Products/ or Endpoints/Products/):What gets generated?
What gets generated?
For each module, Chapi creates:
- 3 API endpoints: Get (list), GetById, Post
- Application Use Cases: Business logic for each operation
- Domain Entities: Your domain model
- Infrastructure Repositories: Database access layer
- Dependency Injection: Auto-configured in
DependencyInjection.cs
ModuleGeneratorService.cs:22-95Push to Remote Repository
Configure Authentication
If you provided a remote URL during project creation, you need to authenticate:See Git Authentication for detailed setup.
- GitHub
- GitLab
- Go to Settings > Git Authentication
- Click Login with GitHub
- Complete OAuth flow in your browser
- Tokens are securely stored in Windows Credential Manager
Next Steps
You’ve successfully created a project, generated code, and pushed to Git! Explore these advanced features:Git Workflow
Master branching, stashing, and conflict resolution
AI Assistant
Configure AI providers and use the conversational assistant
Module Generation
Learn advanced code generation techniques
Architecture
Understand the Clean Architecture implementation
Common Workflows
Create a feature branch
Create a feature branch
- Go to Changes tab
- Click the branch dropdown
- Click New Branch
- Enter branch name (e.g.,
feature/add-authentication) - Start working on your feature
Generate multiple modules at once
Generate multiple modules at once
In the module generator, enter multiple module names separated by semicolons:Chapi will generate all three modules in one operation.
Rollback generated code
Rollback generated code
If code generation doesn’t produce the desired result:
- Open the Rollback view
- Select the transaction to rollback
- Click Execute Rollback
Switch between projects
Switch between projects
- Click the Workspace dropdown in the toolbar
- Select another project
- Chapi switches context immediately
Troubleshooting
Project creation fails with 'Directory already exists'
Project creation fails with 'Directory already exists'
The target directory already contains a folder with your project name. Either:
- Choose a different project name
- Delete the existing directory
- Select a different parent directory
Git authentication fails
Git authentication fails
Ensure you’ve completed the OAuth flow:
- Go to Settings > Git Authentication
- Click Logout then Login again
- Complete the browser OAuth flow
- Verify credentials in Windows Credential Manager
AI commit message generation fails
AI commit message generation fails
Check your AI provider configuration:
- Go to Settings > AI Providers
- Verify your API key is entered correctly
- Check your API quota/billing status
- Try switching to a different provider (Gemini, OpenAI, or Claude)
Module generation produces incorrect code
Module generation produces incorrect code
- Check that Chapi correctly detected your architecture (Ardalis vs Classic)
- Verify your project structure matches the expected layout
- Use the Rollback feature to undo the generation
- Try generating a single operation instead of a full module