zPodFactory Core Engine
Complete the following steps to set up your development environment:
-
Install Docker and Docker Compose
-
Install pyenv and add 3.12.1
brew install pyenv pyenv install 3.12.1
-
Install Poetry:
pip install poetry
-
Configure Virtual Environment. In the
/zpodapi
,/zpodengine
and/zpodcli
directories, run:pyenv local 3.12.1 poetry config virtualenvs.in-project true poetry install
-
Configure Environment Variables. (See
/zpodapi/src/zpodapi/lib/settings.py
file for all available settings) In the root directory, run:cp .env.default .env vim .env
-
For Visual Studios Code, do the following:
a. Configure the zpodcore.code-workspace. In
/
run:cp zpodcore.code-workspace.default zpodcore.code-workspace
Make sure that the port variable in launch.configurations.connect.port matches the port stored in the
ZPODAPI_DEBUG_HOSTPORT
environment variable. -
Build the Docker containers. In the root directory, run:
docker compose build
-
Start the environment. In the root directory, run:
just zpodcore-start
-
Verify that zpodapi is working by opening a browser and going to
http://localhost:[8000 or ZPODAPI_HOSTPORT]
andhttp://localhost:[8000 or ZPODAPI_HOSTPORT]/docs
-
Create Deployments
just zpodengine-deploy-all