Overview
In deco, Apps serve as modular building blocks that encapsulate specific features or capabilities. They enable developers to package and share business-specific functionalities across different projects, making it easier to maintain and scale your deco sites. By running the commanddeno run -Ar https://deco.cx/start
in your terminal,
you can start developing an App from scratch and get it up and running quickly.
App Configuration
Each App can be configured with specific parameters, making it versatile and adaptable to different use cases. Developers can import and configure Apps in their deco sites, allowing for seamless integration and customization of functionality.Monorepo Support
deco Apps can be managed in a monorepo, providing a centralized location to store and organize multiple Apps. This approach streamlines the development process and allows for efficient version control and maintenance of Apps.Getting Started
To create your own deco Apps, follow these steps:- Run the command
deno run -Ar https://deco.cx/start
to initialize a new deco App. - Define the functionalities or components you want to bundle into the App.
- Organize the functions, sections, loaders, or other deco components within the App directory.
- Configure the App to accept parameters and be customizable within the deco Admin.
- Export the App for use in other deco projects.
Importing and Uninstalling Apps
To use a deco App in your deco site, you can run the following commands:-
To install the App:
Replace
$APP_URL
with the path location or HTTP URL of the App. -
To uninstall the App:
Replace
$APP_URL
with the path location or HTTP URL of the App.