Prerequisites
To use all features of Morph, the following environment is required. If these setups are not completed, Morph’s CLI and framework may not function properly.
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.
- 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.
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.
- Homebrew installation.
- Run
brew install node
in the terminal to install the latest Node.js.
- Refer to the nvm documentation to install nvm.
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.
Installing Morph
1
Install morph using pip
Shell
2
Create a Morph Project
Use the
morph new
command to create a Morph project.Shell
3
Start the Morph Development Server
Use the
morph serve
command to start the Morph development server.Shell
4
Open the App in the Browser
Access
localhost:8080
to open the app.5
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!