Express Server Integration
Host Jovo apps on your own server using Express.
Introduction
This server integration allows you to host yor Jovo apps on your own server. Learn more about Express in their official documentation.
For example, the app.dev.ts
stage uses Express as a local development server. The server is referenced in the last line of app.dev.ts
:
export * from './server.express';
You can find the server.express.ts
file here.
Installation
Create a new stage using the new:stage
command as explained in the app config documentation.
When it prompts you to select a server integration, choose Express. This will add a server.express.ts
file to your project's src
folder.
Run Server
If you're not using the Jovo Webhook with the run
command to start the server, you can use the following npm script:
$ npm run start:<stage> # Example $ npm run start:dev