{"id":13536475,"url":"https://github.com/Victoriapm/dbt-basics-workshop","last_synced_at":"2025-04-02T03:30:58.291Z","repository":{"id":80931622,"uuid":"406479214","full_name":"Victoriapm/dbt-basics-workshop","owner":"Victoriapm","description":"dbt basics workshop","archived":false,"fork":false,"pushed_at":"2022-02-16T15:27:19.000Z","size":19948,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-23T10:24:21.956Z","etag":null,"topics":["begginer-friendly","dbt","postgresql","workshop-materials"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Victoriapm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-09-14T18:27:27.000Z","updated_at":"2024-07-14T21:08:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd800f4b-1fb0-4768-aeb0-e5b258a9de2a","html_url":"https://github.com/Victoriapm/dbt-basics-workshop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Victoriapm%2Fdbt-basics-workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Victoriapm%2Fdbt-basics-workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Victoriapm%2Fdbt-basics-workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Victoriapm%2Fdbt-basics-workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Victoriapm","download_url":"https://codeload.github.com/Victoriapm/dbt-basics-workshop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246750915,"owners_count":20827802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["begginer-friendly","dbt","postgresql","workshop-materials"],"created_at":"2024-08-01T09:00:40.125Z","updated_at":"2025-04-02T03:30:53.256Z","avatar_url":"https://github.com/Victoriapm.png","language":null,"funding_links":[],"categories":["Practice"],"sub_categories":["Podcasts"],"readme":"Welcome to the [DBT-in-Practice Workshop](https://www.eventbrite.com/e/dbt-in-practice-workshop-with-victoria-perez-mola-tickets-170094173251) with Victoria Perez Mola by [Dat0s](https://www.linkedin.com/company/dat0s-org)!\n![image](https://user-images.githubusercontent.com/4315804/133504036-037630b8-9c9c-4169-99c8-a3c13e200c65.png)\n\n### How to run this project \n#### Prerequisites\nWe will build a project using dbt and a postgres database, but any other database of your choice could be used. \nThe requirements are:\n- [docker](https://www.docker.com/) to run postgres and can be used for dbt as well (optional) \n- [postgres](https://www.postgresql.org/) (optional - but a database is needed). Follow [this link](https://www.postgresqltutorial.com/install-postgresql-macos/) for instructions on how to install and create a database. I used one database 'production' with a schema for local development 'dbt_victoria_mola' and another schema 'master' for production deployment. \n- [dbt](https://docs.getdbt.com/dbt-cli/installation) (local installation) Follow link for instructions or use a docker image from oficial [dbt repo](https://github.com/dbt-labs/dbt/)\n\n### About the data\nThis project is based in open data sets found in Kaggle.com: \n- [Netflix audience behaviour - UK movies](https://www.kaggle.com/vodclickstream/netflix-audience-behaviour-uk-movies) (data from year 2019 has been deleted)\n- [Movies and TV Shows listings on Netflix](https://www.kaggle.com/shivamb/netflix-shows)\n\n### About the project\nThis project is based in [dbt starter project](https://github.com/dbt-labs/dbt-starter-project) (generated by running `dbt init`)\nTry running the following commands:\n- dbt run\n- dbt test\n\nA project includes the following files: \n- dbt_project.yml: file used to configure the dbt project, make sure the profile here matches the one setup during local installation in ~/.dbt/profiles.yml\n- csv files in the data folder: these will be our sources, files described above\n- Files inside folder models: The sql files contain the scripts to run our models, this will cover staging, core and a datamarts models. At the end, these models will follow this structure: \n\n![image](https://user-images.githubusercontent.com/4315804/134244783-e324a928-114c-4ff7-8975-7919a774bc9a.png)\n\n#### Workflow\n![image](https://user-images.githubusercontent.com/4315804/134247720-c3ed8c50-b50b-47b3-89be-e4c9984da09b.png)\n\n\n#### Execution\nAfter having installed the required tools and cloning this repo, execute the following commnads: \n\n1. Change into the project's directory from the command line: `$ cd dbt-basics-workshop/complete-project`\n2. Load the CSVs into the database. This materializes the CSVs as tables in your target schema: `$ dbt seed`\n3. Run the models: `$ dbt run`\n4. Generate documentation for the project: `$ dbt docs generate`\n5. View the documentation for the project, this step should open the documentation page on a webserver, but it can also be accessed from  http://localhost:8080 : `$ dbt docs serve`\n\n### Resources:\n- Learn more about dbt [in the docs](https://docs.getdbt.com/docs/introduction)\n- Check out [Discourse](https://discourse.getdbt.com/) for commonly asked questions and answers\n- Join the [chat](http://slack.getdbt.com/) on Slack for live discussions and support\n- Find [dbt events](https://events.getdbt.com) near you\n- Check out [the blog](https://blog.getdbt.com/) for the latest news on dbt's development and best practices\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVictoriapm%2Fdbt-basics-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVictoriapm%2Fdbt-basics-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVictoriapm%2Fdbt-basics-workshop/lists"}