This tutorial will guide you through the process of creating an end-to-end pipeline with Octopipe. By the end of this guide, you will have a working pipeline that extracts data from a source, transforms it, and loads it into a destination.
The —local flag indicates that you are setting up the project for local development.Step 2: AuthenticateAuthenticate your CLI session with your API key to access Octopipe features:
Copy
octopipe login --api-key YOUR_API_KEY_HERE
• Note:Make sure your API key is valid. If using username/password, you can provide those credentials instead.Step 3: Add a Data SourceConfigure a data source from which to extract your data. For example, to add a sales API:
• Key Points:• —name assigns a unique identifier.• —type specifies the kind of source.• Additional —option flags supply connection details.Step 4: Add a Data DestinationNext, configure where the data will be loaded. In this example, we add a PostgreSQL destination:
• Details:This command sets up the connection parameters for your destination.Step 5: Define a TransformationCreate a transformation to map the type safe API schema to your destination schema. Use a schema file to define the mapping:
• What Happens:The command generates a transformation layer which you can review and approve before execution.Step 6: Create the PipelineOnce all components are in place, create the pipeline:
• Schedule Explanation:The cron expression “0 0 * * *” schedules the pipeline to run daily at midnight.Step 7: Start the PipelineLaunch your pipeline to begin processing data:
Copy
octopipe start daily_sales
• Verification:Ensure the pipeline starts correctly by checking for confirmation messages.Step 8: Monitor Pipeline ExecutionTo view real-time logs and monitor the pipeline, run:
Copy
octopipe logs daily_sales --follow
• Tip:Use additional options such as —tail 50 to view the last 50 lines if needed.ConclusionCongratulations! You have successfully created and launched your first Octopipe pipeline. This tutorial covered the entire process from initialization to monitoring. For further customization and troubleshooting, refer to the other sections of our documentation.Happy piping!