RudderStack Developer Machine Setup

Set up RudderStack in your development environment.

This guide lists the steps to set up the RudderStack data plane in your development environment.

Prerequisites

Data plane setup

RudderStack recommends using the latest rudder-server and rudder-transformer versions to avoid any breaking changes to your pipelines.

See the Server-Transformer Compatibility guide for more information.

  1. Log in to your RudderStack Open Source dashboard.
  2. Copy your workspace token from Settings > Workspace:
Workspace Token
  1. Set up the database in your preferred directory using the following commands:
bash
createdb jobsdb
createuser --superuser rudder
psql "jobsdb" -c "alter user rudder with encrypted password 'rudder'";
psql "jobsdb" -c "grant all privileges on database jobsdb to rudder";
  1. Clone the rudder-server repository:
bash
git clone https://github.com/rudderlabs/rudder-server.git
  1. Run the following commands to fetch the rudder-transformer repository.
bash
git submodule init
git submodule update
  1. Navigate to the rudder-transformer directory using the cd rudder-transformer command.
  2. Install the dependencies using the npm i command.
  3. Start the destination transformer:
bash
node destTransformer.js
  1. Navigate back to the main directory using the cd rudder-server command.
  2. Copy sample.env to the main directory:
bash
cp config/sample.env .env
  1. Update WORKSPACE_TOKEN in this file with the workspace token you copied in Step 2.
  2. Start the RudderStack server:
bash
go run main.go

Self-hosted control plane

If you are self-hosting your control plane using Control Plane Lite, see Developer Machine Setup instructions to set up the data plane.

Verify installation

To verify if the setup is successful, follow the steps listed in Verify installation.

Questions? Let's figure it out together.

Join the RudderStack Slack community to connect with other users, customers, and the RudderStack team — or reach out for direct support.