Skip to content

trouze/dbt-codespace-ready

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbt Fusion Codespace Starter

A batteries-included GitHub Codespace for dbt development — no local install required.

Opens a VS Code environment with the dbt Fusion engine (Rust-based) and the official dbt VS Code extension pre-installed.

Quick start

Start a new dbt project — creates a repo in your org from this template, then open a Codespace from your new repo via Code → Codespaces:

Use this template

Try it out — opens a Codespace directly from this template without creating a repo:

Open in GitHub Codespaces

Codespaces work best in Chrome or Firefox. Safari users may hit Service Worker errors — enable third-party cookies if so.


Setup

1. Configure Codespaces secrets

Before creating your Codespace, add these repository secrets so credentials are injected automatically at startup:

Secret Description
SNOWFLAKE_ACCOUNT Account identifier, e.g. abc12345.us-east-1
SNOWFLAKE_USER Your Snowflake username
SNOWFLAKE_PASSWORD Your Snowflake password
SNOWFLAKE_DATABASE Target database
SNOWFLAKE_WAREHOUSE Virtual warehouse name
SNOWFLAKE_SCHEMA Dev schema (defaults to dev)
SNOWFLAKE_ROLE Role (optional)

Set them at: Repository → Settings → Secrets and variables → Codespaces

Docs: Specifying recommended secrets for a repository

2. Initialize your project

The profiles.yml at the root already references the secrets above. Update dbt_project.yml with your project name and adjust the model configurations to match your layering convention.

3. Run dbt

dbt debug       # verify connection
dbt deps        # install packages
dbt run         # execute models
dbt test        # run tests

What's included

Component Detail
Engine dbt Fusion (Rust binary — fast, no Python dependency)
Extension dbt Labs VS Code extension with DAG explorer, model preview, autocomplete
profiles.yml Snowflake template wired to Codespaces secrets via env_var()
dbt_project.yml Minimal skeleton with staging (views) and marts (tables) layers

Connecting a different warehouse

Swap out the outputs.dev block in profiles.yml for any adapter dbt Fusion supports. See dbt connection profiles docs.

About

dbt GitHub Codespace template — spin up a batteries-included dbt development environment in seconds, no local install required.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors