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

Update section Using node-postgres in Express in the Using PostgreSQL course #29063

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions nodeJS/express/using_postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

This section contains a general overview of topics that you will learn in this lesson.

- Setting up a new db in PostgreSQL shell

Check failure on line 19 in nodeJS/express/using_postgresql.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Lesson overview items must be statements, not questions, and must begin with a capital letter and end with a period.

nodeJS/express/using_postgresql.md:19 TOP009/lesson-overview-items-sentence-structure Lesson overview items must be statements, not questions, and must begin with a capital letter and end with a period. [Lesson overview items must be statements, not questions, and must begin with a capital letter and end with a period.] [Context: "Setting up a new db in PostgreSQL shell"] https://github.com/TheOdinProject/curriculum/blob/main/markdownlint/docs/TOP009.md
- Setting up and querying with node-postgres

Check failure on line 20 in nodeJS/express/using_postgresql.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Lesson overview items must be statements, not questions, and must begin with a capital letter and end with a period.

nodeJS/express/using_postgresql.md:20 TOP009/lesson-overview-items-sentence-structure Lesson overview items must be statements, not questions, and must begin with a capital letter and end with a period. [Lesson overview items must be statements, not questions, and must begin with a capital letter and end with a period.] [Context: "Setting up and querying with node-postgres"] https://github.com/TheOdinProject/curriculum/blob/main/markdownlint/docs/TOP009.md
- Using a script to populate the db

Check failure on line 21 in nodeJS/express/using_postgresql.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Lesson overview items must be statements, not questions, and must begin with a capital letter and end with a period.

nodeJS/express/using_postgresql.md:21 TOP009/lesson-overview-items-sentence-structure Lesson overview items must be statements, not questions, and must begin with a capital letter and end with a period. [Lesson overview items must be statements, not questions, and must begin with a capital letter and end with a period.] [Context: "Using a script to populate the db"] https://github.com/TheOdinProject/curriculum/blob/main/markdownlint/docs/TOP009.md

### Setting up an Express app

Expand Down Expand Up @@ -115,6 +115,8 @@
});
```

Remember that you should change the <role_name> and <role_password> (We have already set them in the previous lesson)!

An alternative to defining the connection information is through a [Connection URI](https://node-postgres.com/features/connecting#connection-uri). You'll likely be using connection URIs when connecting with a hosted database service. Here's what it would look like based on the above properties:

```javascript
Expand Down
Loading