Vérifiez si Postgres est installé sur votre ordinateur :
psql --version
Sinon, installez Postgres.
Lancez la console Postgres en tant que l'utilisateur postgres :
Vérifiez si Postgres est installé sur votre ordinateur :
psql --version
Sinon, installez Postgres.
Lancez la console Postgres en tant que l'utilisateur postgres :
| const parseDate = (year, fullDate) => { | |
| if (!year) { | |
| throw new Error('arg year is missing'); | |
| } | |
| if (!fullDate) { | |
| return new Date(year); | |
| } | |
| return new Date(fullDate); | |
| }; | |
| module.exports = parseDate; |
| { | |
| "articles": [ | |
| { | |
| "id": "3B8A9F8D-8E8D-43D6-BCB8-E136D3AD279D", | |
| "title": "A journey through internet garbage" | |
| }, | |
| { | |
| "id": "85D4407D-496C-43BD-9B4D-93B6064B76EA", | |
| "title": "The Cost of Fixing Things" | |
| }, |