{"id":16509468,"url":"https://github.com/jtemporal/tadpgweb","last_synced_at":"2025-03-02T06:14:29.976Z","repository":{"id":78994900,"uuid":"128475972","full_name":"jtemporal/tadpgweb","owner":"jtemporal","description":"Material pro TAD de postgres -\u003e ","archived":false,"fork":false,"pushed_at":"2018-04-06T22:21:32.000Z","size":3,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T18:35:23.139Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=4DmK0b7QqYE","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jtemporal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-06T22:21:19.000Z","updated_at":"2023-04-17T13:36:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"29cdb212-4d82-4580-a6d2-4fe2c0323964","html_url":"https://github.com/jtemporal/tadpgweb","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/jtemporal%2Ftadpgweb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2Ftadpgweb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2Ftadpgweb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2Ftadpgweb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jtemporal","download_url":"https://codeload.github.com/jtemporal/tadpgweb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241465113,"owners_count":19967243,"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":[],"created_at":"2024-10-11T15:50:42.657Z","updated_at":"2025-03-02T06:14:29.960Z","avatar_url":"https://github.com/jtemporal.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# TAD: pgweb\n\n[pgweb](https://github.com/sosedoff/pgweb) é um cliente multi-plataforma para bancos de dados PostgreSQL.\n\nÉ escrito em Go o que significa que você pode instalar usando `go get`:\n\n```console\ngo get github.com/sosedoff/pgweb\n```\n\nAqui vamos usar a imagem [docker com o postgres na versão 9.6](https://github.com/docker-library/postgres) com o docker-compose mas se você tiver uma instância local do PostgreSQL já serve.\n\nColocando o banco no ar:\n\n```console\ncd tadpgweb\ndocker-compose up tad\n```\n\n## Preparando o banco\n\nNum outro terminal vamos copiar os arquivos de migração para dentro da pasta do postgres:\n\n```console\nsudo cp migrations/*up.sql data/postgres/\n```\n\nE depois para aplicar as migrações no banco:\n```console\ndocker-compose exec tad psql -U postgres -d tadpgweb -1 -f /var/lib/postgresql/data/001_create_table_up.sql\ndocker-compose exec tad psql -U postgres -d tadpgweb -1 -f /var/lib/postgresql/data/002_alter_table_up.sql\ndocker-compose exec tad psql -U postgres -d tadpgweb -1 -f /var/lib/postgresql/data/003_alter_table_up.sql\ndocker-compose exec tad psql -U postgres -d tadpgweb -1 -f /var/lib/postgresql/data/004_data_migration_up.sql\n```\n\nE finalmente rode o `pgweb`:\n\n```console\npgweb\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtemporal%2Ftadpgweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjtemporal%2Ftadpgweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtemporal%2Ftadpgweb/lists"}