- Necesary
Download or Clone repositorie, in terminal:
npm i express pg nodemon
- init PSQL with password: password
- In folder src/index.js, activate function getBooks();
- In terminal:
npm run dev
- In folder src/index.js, comment function -> //getBooks();
- In terminal:
npm run dev
- In PSQL, connect to library:
\c library
- List of Tables:
\dt
- library=# select * from users;
- Delete user, comment -> //instertUser();
- In terminal:
npm run dev
- in PSQL, select * from users;
- editUser(), comment -> //deleteUser();
- In terminal:
npm run dev
- in PSQL, select * from users;