if admin room leave room ?
npm run start:dev
sudo service postgresql start ou systemctl postgresql start
config : /etc/postgresql/... data : /var/lib/postgresql/... bin : /usr/lib/postgresql/...
psql -U jrasser -d pong_db
DB_HOST=127.0.0.1 DB_PORT=5432 DB_USERNAME=jrasser DB_PASSWORD=jrasser DB_NAME=pong_db
apt install postgresql -y systemctl status postgresql sudo service postgresql status sudo su - postgres psql
create user jrasser with password 'jrasser'; create database pong_db; grant all privileges on database pong_db to jrasser;
CREATE TABLE test ( id SERIAL PRIMARY KEY, nom TEXT NOT NULL, email TEXT UNIQUE NOT NULL, mot_de_passe TEXT NOT NULL ); \q exit
curl -fsS https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /usr/share/keyrings/packages-pgadmin-org.gpg
sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
sudo apt install pgadmin4
sudo /usr/pgadmin4/bin/setup-web.sh
sudo su - postgres
cd /var/lib/postgresql pg_dump pong_db > save.sql exit exit
docker cp postgres:/var/lib/postgresql/save.sql ./db/save.sql