app.js - App Initialization and Logic
Learn how to use the app.js file of the Jovo Framework.
Overview
The app.js
file is the heart of your voice app's logic, and consists of the following two main components:
App Initialization
The app initialization section requires all the modules and plugins that are needed for your voice app to work:
With the use
command, you can register any additional plugins. The configuration can then be done in the config.js
file.
App Logic
The app logic section is where the routing is happening. Small projects may also contain data operations and output. For larger projects, we recommend keeping the app.js
organized and splitting up the logic into different files and modules.