Skip to content

Usage with vagrant #340

@robinportigliatti

Description

@robinportigliatti

Installation

Creation of the virtual machine and SSH connection to it:

vagrant up
vagrant ssh default

Updating packages:

sudo apt update -y
sudo DEBIAN_FRONTEND=noninteractive apt upgrade -y

Installing nodejs:

curl -fsSL https://deb.nodesource.com/setup_23.x -o nodesource_setup.sh
sudo -E bash nodesource_setup.sh
sudo apt install -y nodejs

Installing PostgreSQL:

sudo apt install -y postgresql-common
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
sudo apt install -y postgresql

Installing Azimutt:

sudo npm install -g azimutt

Exploring your database:

Here, in our example, we will explore the postgres database:

sudo npx azimutt explore postgresql://postgres:postgres@localhost/postgres

Example output:

     _            _                       _     _                               
    / \     ____ (_)  _ __ ___    _   _  | |_  | |_        __ _   _ __    _ __  
   / _ \   |_  / | | | '_ ` _ \  | | | | | __| | __|      / _` | | '_ \  | '_ \ 
  / ___ \   / /  | | | | | | | | | |_| | | |_  | |_   _  | (_| | | |_) | | |_) |
 /_/   \_\ /___| |_| |_| |_| |_|  \__,_|  \__|  \__| (_)  \__,_| | .__/  | .__/ 
                                                                 |_|     |_|    
Version 0.1.36

(node:43131) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
{"level":30,"time":1736960003115,"pid":43131,"hostname":"debian12.localdomain","msg":"Server listening at http://127.0.0.1:4177"}
opening https://azimutt.app/create#postgresql%3A%2F%2Fpostgres%3Apostgres%40localhost%2Fpostgres

And when I try to access to http://192.168.56.10:4177 I can't.

Is there something else to do with azimutt to make it listen to all ipv4 addresses ?

The vagrant file :

Vagrant.configure("2") do |config|
  config.vm.box = "generic/debian12"
  config.vm.network "private_network", ip: "192.168.56.10"
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions