We are assuming that you already have Postgres in your device. To check, try to run psql --version in your cli to see your current psql version.
- npm i
- npm i pg
- npm i --save-dev @types/pg
- .env* to the .gitignore
- EDIT your env file: change those parameters within the angle brackets.
psql -U postgres// to connect to your postgres localhost\l// show list of databasesCREATE DATABASE <dbName>;// to create db\c <dbName>// to connect to database\dn// show list of schemasSET search_path to <your-schema>;// to connect to you schemaSHOW search_path;// show current schema\dt// show list of tables within that schemaSQL commands// eg. SELECT * FROMfull.schema;\q// to quit or terminate cli\! cls// clear cli