This guide will walk you through setting up the PostPipe environment and running your first Zero Trust Connector simulation.
Before we begin, ensure you have the following installed:
- Node.js 18+: Required for all apps and CLI tools.
- npm (similiar package manager): Usually comes with Node.js.
- MongoDB or Postgres: securely running locally or in the cloud (for the connector to talk to).
- Docker (Optional): If you plan on testing container deployments.
PostPipe 2.0 comes with a fully simulated environment called the "Dynamic Lab" to test the flow:
Browser -> PostPipe SaaS -> User Connector -> DB.
The "Dynamic Lab" is the Next.js application that hosts the Dashboard and Mock Ingest API.
-
Navigate to the project root.
-
Run the development server:
npm run dev:lab
This will start the Lab on
http://localhost:3000.
In a separate terminal window, you will generate and run your secure connector.
-
Generate a Connector: Use the CLI to scaffold a new connector project.
node cli/create-postpipe-connector/dist/index.js my-test-connector
-
Install & Configure: Go into the new directory and install dependencies.
cd my-test-connector npm install -
Configure Ports (CRITICAL): Since the Lab runs on port 3000, your connector must run on a different port (e.g., 3001) to avoid conflicts locally. Open the
.envfile inmy-test-connectorand set:PORT=3001
-
Start the Connector:
npm run dev
Now that both the Lab (SaaS) and your Connector are running, let's connect them.
- Open the Connector Demo Page at http://localhost:3000/connector-demo.
- Enter your Connector URL:
http://localhost:3001/postpipe/ingest. (This tells the Lab where your local connector is listening) - Click Generate Credentials.
- Copy the generated
POSTPIPE_CONNECTOR_IDandSECRET. - Paste these values into your connector's
.envfile:POSTPIPE_CONNECTOR_ID=... POSTPIPE_CONNECTOR_SECRET=...
- Restart your connector terminal to apply the changes.
- Go back to the browser and Submit the form on the Demo Page!
If successful, you will see data flow from the Browser, through the Lab, to your Connector, and back!
For everyday use, you can access the powerful CLI tools directly using npx. See the CLI Documentation for more details.