Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage with vagrant #340

Open
robinportigliatti opened this issue Jan 15, 2025 · 0 comments
Open

Usage with vagrant #340

robinportigliatti opened this issue Jan 15, 2025 · 0 comments

Comments

@robinportigliatti
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant