/istdbdm

Primary LanguageJupyter Notebook

IST Data Base and Data Mining Lab Repo

The Relational models using PostgreSQL

Teaching Assistants: Mohamed Ragab and Fabiano Spiga

Instructions

Use GitHub Codespaces

Codespaces natively support Visual Studio (both remotely via browser or locally via ssh connection).

Follow this guide to create the codespace for the repository.

The you can operate directly in visual studio.

Local Installation

Installing "Python", "Jupyter Notebook", and "PostgreSQL".

Windows Users:

For Linux users:

Docker users

Simply clone the repository and run

```docker-compose up``

The following docker compose file will build the notebook container which includes all the required dependencies. Services are also exposed to the host network so you can connect to the via localhost

version: "3"

services:
  postgres:
    image: postgres
    restart: always
    ports:
        - 5432:5432
    environment:
      - POSTGRES_HOST_AUTH_METHOD=trust
  notebook:
    build: notebook/
    ports:
      - 8888:8888
    volumes:
       - ./:/home/jovyan/work/data
    environment:
      - GRANT_SUDO=yes