- Install Docker.
- In
docker
, runnpm start
to start Postgres. - In
data-service-final
, runnpm run start:dev
to start Nest server. - Browse to
localhost:3000/api
to view Swagger.
- Run
npm run shell:postgres
to shell into Postgres container. - Run
su - postgres
to switch to userpostgres
. - Run
psql
to open Postgres shell. - Run
\c demo
to connect todemo
database. - Run
\dt
to list tables. - Run
d+ user
to showuser
table description. - Run
select * from public.user;
to get records inuser
table.
https://docs.google.com/presentation/d/1P0lwgKgIclBM_SIzsY9cBg8HJx1J1bxcRt9635LdGL4/edit?usp=sharing