Web Apps
Web apps are MATLAB apps that can run in a web browser. You create an interactive MATLAB app using App Designer, package it using the Web App Compiler, and host it using either the development version of MATLAB Web App Server or the MATLAB Web App Server™ product. Each web app has a unique URL and can be accessed from a web browser using HTTP or HTTPS protocols. The server has a home page listing all available hosted web apps. You share web apps by sharing the unique URL to a web app or the URL to the home page of the server.
Web apps are designed to run only within a trusted intranet environment, not in the open Internet. For more information, see Potential Risks.
Only apps designed using App Designer can be deployed as web apps. For more information, see Develop Apps Using App Designer.
MATLAB Compiler™ ships with the development version of MATLAB Web App Server. However, if you want to integrate the server in an enterprise ecosystem with authentication and role-based access capabilities, continue to run web apps created using different releases of MATLAB, and have no limit on the number of end-users accessing web apps, you need to purchase the MATLAB Web App Server product. For details, see MATLAB Web App Server Differences.
Web apps are supported on Windows®, Linux®, and macOS systems. Specifically, the development version of MATLAB Web App Server in MATLAB Compiler supports both macOS (Intel® processor) and macOS (Apple silicon), while the product version only supports macOS (Intel processor). For a list of supported web browsers, see Supported Browsers and Platform Incompatibilities.
Apps
Web App Compiler | Package App Designer apps for web deployment |
Functions
compiler.build.webAppArchive | Create an archive for deployment to MATLAB Web App Server (Since R2020b) |
compiler.build.WebAppArchiveOptions | Options for building web app archives (Since R2020b) |
compiler.build.Results | Compiler build results object (Since R2020b) |
compiler.UserInfo | Retrieve details of logged-in user (Since R2022a) |
webAppCompiler | Package App Designer apps for web deployment |
Topics
Install and Configure
- System Requirements for Development Version of MATLAB Web App Server
Hardware and software requirements to install and run the development version of MATLAB Web App Server. - Install the Development Version of MATLAB Web App Server in MATLAB Compiler
Steps to install the development version of MATLAB Web App Server. - Start the Server Application
Steps to start the server application in the development version of MATLAB Web App Server. - Configure the Development Version of MATLAB Web App Server in MATLAB Compiler
Register services and configure server options in the development version of MATLAB Web App Server. - Supported Browsers and Platform Incompatibilities
Check the compatibility of your web browser and platform. - MATLAB Web App Server Differences
Differences between the MATLAB Web App Server product and the development version of MATLAB Web App Server in MATLAB Compiler.
Create, Deploy, and Run
- Create Web App
Learn how to create a web app for deployment. - Deploy Web App
Learn how to deploy a web app. - Run Web App
Run and test web apps from a browser. - Simple Mortgage Calculator Web App
Try an example on how to create, deploy, and run a web app. - Deploy Simulink Simulation Web App
Try an example on how to create, deploy, and run a web app containing a Simulink® simulation. - Web App Limitations and Unsupported Functionality
Consider functional limitations and unsupported MATLAB functions when creating web apps.
Diagnostics
- Diagnostics
Check the status of each web app. - Web App Session Log
Check the web app session log.
Security
- MATLAB Web App Server Security
Take security precautions when hosting web apps. - Enabling HTTPS
Configure MATLAB Web App Server to use HTTPS. - Potential Risks
Consider the client, server, and application risks associated with running web apps. - Authoring Secure Web Apps
Follow guidelines and practices for authoring MATLAB apps to be secure web apps. - Securely Deploying Web Apps
Summary of security guidelines for deploying web apps.