Developing an App
$YOUR_APP_NAME
with the name you chose for your deco App during
initialization.
mod.ts
Filemod.ts
file in your deco App:
mod.ts
file is the heart of your deco App and is written by the developer.
In this file, you import the automatically generated manifest
and define the
State
interface, which represents the properties of your app. This is useful,
for instance, to get API Keys for an specific services or to allow the user to
manage global settings for the app.
The App
function is exported and takes the state
object as an argument,
representing the state of your app. It then returns an object containing the
manifest
and the defined state
. This function is crucial for your app to
work correctly.
Lastly, the AppContext
type is exported, representing the context of your app
and allowing access to the properties defined in mod.ts
.
mod.ts
file, the heart of your app, which allows you
to define the manifest
and state
of your app. Deco Apps provide a powerful
way to bundle and share business capabilities, making it easier to maintain and
scale your deco projects. Enjoy coding and feel free to explore more deco
features to further enhance your apps! 🚀