Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.24 KB

DEVELOPMENT.md

File metadata and controls

32 lines (20 loc) · 1.24 KB

Plandex development 🛠️

To set up a development environment, first install dependencies:

Make sure the PostgreSQL server is running and create a database called plandex.

Then make sure the following environment variables are set:

export DATABASE_URL=postgres://user:password@host:5432/plandex # replace with your own database URL
export GOENV=development

Note: EnvKey is a good way to manage environment variables in development.

Now from the root directory of this repo, run:

./dev.sh

This creates watchers with reflex to rebuild both the server and the CLI when relevant files change.

The server runs on port 8088 by default.

After each build, the CLI is copied to /usr/local/bin/plandex so you can use it with just plandex in any directory. A pdx alias is also created.

When running the Plandex CLI, set export PLANDEX_ENV=development to run in development mode, which connects to the development server by default.