Git Product home page Git Product logo

dashing-datawarehouse-dbt's Introduction

Welcome to Dashing DataWarehouse with dbt project! ( ongoing )

Dir Structure

project
│   README.md
│   requirements.txt  
|   .gitignore  
|   packages.yml
|   dbt_project.yml
│
└───miscellaneous
│   │   profiles.yml     : sample config file
│   
└───models
│   │   schema.yml       : for generic test & documentation
│   └───src              : all core sql file
│   └───dim              : data generated from src
│   └───fact             : data generated from src
│
└───seeds
│   │   *.csv     : static file want to export in DWH
│   
└───snapshots
│   │   *.sql     : history/log of tables
│   
└───tests
│   │   *.sql     : custom test file 

DAG sample

graph

Instruction

set_environment

  • create python venv
  • install requirements.txt

set_project

  • DB setup ( postgres )

    • DBName: dvdrental
    • restore miscellaneous --> dvdrental.tar in public schema
    • SchemaName: dashingdvdrental
  • clone the repo

  • goto repo

  • File configure: configure the following file according to miscellaneous --> profiles.yml

    • Windows
      • C:\Users\This Pc\.dbt
    • linux
    • mac
  • check config: dbt debug

  • test project: dbt test

  • run project: dbt run

  • snapshot/log generate: dbt snapshot

  • Documentation of project:

    dbt docs generate
    
    dbt docs serve
    

import

  • place any *.csv file in seeds dir & run dbt seed. A table will be created with the name of csv file.

dashing-datawarehouse-dbt's People

Contributors

riju18 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.