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

warning

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:
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:
git clone https://github.com/rudderlabs/rudder-server.git
  1. Run the following commands to fetch the rudder-transformer repository.
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:
node destTransformer.js
  1. Navigate back to the main directory using the cd rudder-server command.
  2. Copy sample.env to the main directory:
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:
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? Contact us by email or on Slack