Installation
Python 3.9 or higher and Node.js 18 or higher are required to use Morph.
Prerequisites
To use all features of Morph, the following environment is required.
Python 3.9 - 3.12
Python 3.9 - 3.12
For the Morph framework to work, Python 3.9 or higher, but less than 3.13 is required*.
To check your Python version, run the following command:
If Python 3.9 or higher is not installed, please follow the steps below to install it.
Installation from the official website
- Download the macOS installer (.pkg file) from the official Python website and install it by double-clicking.
Installing Python and pyenv with Homebrew for package management
- Homebrew installation.
- Run
brew install python
in the terminal to install the latest Python. - Run
brew install pyenv
in the terminal to install pyenv. - Run
pyenv install 3.11.11
in the terminal to install Python 3.11.11.
Installation from the official website
- Download the macOS installer (.pkg file) from the official Python website and install it by double-clicking.
Installing Python and pyenv with Homebrew for package management
- Homebrew installation.
- Run
brew install python
in the terminal to install the latest Python. - Run
brew install pyenv
in the terminal to install pyenv. - Run
pyenv install 3.11.11
in the terminal to install Python 3.11.11.
Installation from the official website
- Download the Windows installer (.exe file) from the official Python website and follow the installation wizard instructions.
It is recommended to use a tool such as pyenv-win
for managing Python versions.
Please install Python using the recommended method for your Linux distribution.
Node.js 18 or higher, npm 7 or higher
Node.js 18 or higher, npm 7 or higher
For the Morph framework to function, Node.js 18 or higher and npm 7 or higher are required.
To check your Node.js version, run the following command:
If Node.js 18 or higher is not installed, please follow the steps below to install it.
Installation from the official website
- Download the macOS installer (.pkg file) from the official Node.js website and install it.
Installing Node.js and nodenv with Homebrew for package management
- Homebrew installation.
- Run
brew install node
in the terminal to install the latest Node.js.
Installing Node.js using nvm
- Refer to the nvm documentation to install nvm.
Installation from the official website
- Download the macOS installer (.pkg file) from the official Node.js website and install it.
Installing Node.js and nodenv with Homebrew for package management
- Homebrew installation.
- Run
brew install node
in the terminal to install the latest Node.js.
Installing Node.js using nvm
- Refer to the nvm documentation to install nvm.
Installation from the official website
- Download the Windows installer (.exe file) from the official Node.js website and follow the installation wizard instructions.
Installing Node.js using nvm-windows
- Refer to the nvm-windows documentation to install nvm-windows.
Please install Node.js using the recommended method for your Linux distribution.
Docker
Docker
Docker is required to deploy the Morph framework in a cloud environment with Morph CLI. If you cannot use Github repository, please follow the steps below to install it.
If Docker is not installed, please follow the steps below to install it.
Installation from the official website
- Download the macOS installer (.dmg file) from the official Docker website and install it.
Installation from the official website
- Download the macOS installer (.dmg file) from the official Docker website and install it.
Installation from the official website
- Download the Windows installer (.exe file) from the official Docker website and follow the installation wizard instructions.
Please install Docker using the recommended method for your Linux distribution.
Installing Morph
Install morph using pip
Create a Morph Project
Use the morph new
command to create a Morph project.
Start the Morph Development Server
Use the morph serve
command to start the Morph development server.
Open the App in the Browser
Access localhost:8080
to open the app.
Build the App using SQL, Python, and MDX
Up to this point, you have started the basic development server. Let’s build the app using SQL, Python, and MDX!
Editor (VS Code) Setup
MDX files used in the Morph frontend can have syntax highlighting and code completion by installing the VSCode extension.
https://marketplace.visualstudio.com/items?itemName=unifiedjs.vscode-mdx