Data integration on the Northwind dataset. Created in the Business Intelligence course.
-
Clone this repository
-
Up the docker
docker-compose up -d
-
Create the transactional database (Northwind)
localhost:8081
Sistema: Postgres
Servidor: db_postgres
Usuário: postgres
Senha: root
-
Restore the backup
cat ./postgres/dump/Northwind\ -\ POSTGRES.backup | docker exec -i pdi_db_postgres_1 pg_restore -v -h localhost -U postgres -d Northwind
-
Create the dimensional database (DM_Northwind)
-
Run the SQL
cat ./postgres/model/modelo\ dimensional_postgre.sql | docker exec -i pdi_db_postgres_1 psql -U postgres -d DM_Northwind -a