Framework Overview
Morph is a framework for building web applications using Python and Markdown. You can build the backend of the application with Python and the frontend with Markdown.
Directory Structure
The directory structure of the framework is as follows:
src
… Directory to place the source code of the data applicationpages
… Directory to place the frontend MDX filespython
… Directory to place the backend Python filessql
… Directory to place the backend SQL files
.env
… File to set environment variablesDockerfile
… File to build the data application as a Docker containermorph_project.yml
… File to describe the project settings. The framework recognizes the directory wheremorph_project.yml
is placed as the root directory.
In addition to these, requirements.txt
or poetry.toml
for managing Python packages, and package.json
for managing JavaScript packages will be placed.
Start the Development Server
To check the behavior of the data application, start the development server.
If the server starts successfully with the above command, you can access the data application by accessing http://localhost:8080
.
Customization
Morph provides convenient features for customizing data applications. To check the functions and features available in SQL and Python, please refer to the Framework Reference. For details on the MDX components available for frontend development, please refer to the Component Reference.
When you are ready to share with your team, see Deploy Guide.
Alias
Learn about aliases, a concept that spans the entire Morph framework.
Building the Backend
Learn how to build the backend with Python.
Building the Frontend
Learn how to build the frontend with Markdown.
Environment Variables
Manage secret information with environment variables.
Connecting to DB/SaaS
Build data applications that access DBs and SaaS.
Using Variables
Customize the behavior of the data application based on user input.
Role-Based Access Control
Customize data access control and application behavior by utilizing user project roles.