App Management Commands
Thepaw apps commands allow you to create and manage applications within your Fusioncat projects.
Commands
apps list
List all applications in a project.Options
--project-id(required): The ID of the project
Examples
apps new
Create a new application.Options
--project-id(required): The ID of the project--name(required): Name of the application--description: Description of the application
Examples
Understanding Applications
What is an App?
In Fusioncat, an app represents a consumer or producer of your API definitions. Apps can be:- Frontend applications (web, mobile)
- Backend services
- Microservices
- Third-party integrations
App Configuration
Each app can:- Generate code in different languages
- Have its own configuration
- Use specific schema versions
- Define custom mappings
App Types
While the CLI doesn’t enforce app types, common patterns include:-
Consumer Apps: Use schemas to consume data
- Web frontends
- Mobile applications
- CLI tools
-
Producer Apps: Generate data conforming to schemas
- API servers
- Event producers
- Data pipelines
-
Full-Stack Apps: Both produce and consume
- Microservices
- API gateways
- Backend-for-frontend (BFF) services
Code Generation
After creating an app, you can generate code for it:Best Practices
Naming Apps
- Use descriptive names that indicate the app’s purpose
- Include the platform/technology if relevant
- Examples: “React Web App”, “iOS Mobile App”, “Order Processing Service”
App Organization
- One app per deployable unit: Each microservice, frontend, or mobile app should be separate
- Shared schemas: Apps in the same project share schema definitions
- Version independence: Each app can use different schema versions
Development Workflow
- Create project and schemas
- Create app for your implementation
- Generate initial code
- Implement business logic
- Regenerate when schemas change
Examples
Multi-App Project
Microservices Architecture
Related Commands
- Projects - Create projects to contain apps
- Schemas - Define data structures for apps
- Code Generation - Generate code for apps
- Messages - Create messages that apps can use