Skip to content

usapokemon/get-programming-with-nodejs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

*** MongoDB Accessing API Changed

NOTICE: As of 3/25/2024, the following packages have been upgraded:

MongoDB -->  7.0.7, 
Node.js Driver --> 6.5.0, and 
node.js language version --> V.20.10.1 

To solve the compatibility issues and issues such as "the callback functions are deprecated", the sample code for the book "The Get Programming with Node.js" needs to be modified to become compatible with the following environment:

mongod --version
7.0.7
node --version
v20.10.1
npm list mongodb
|--- mongodb@6.5.0
|--- mongoose@6.9.2
  |-- mongodb@4.13.0

The major changes is due to the deprecation of callback functions in MongoDB accessing API functions. In lessons_13 - lessons_14, the changes are needed to use async/await. There are also minor changes, such as connect options that are no longer supported, e.g., useNewURL, useUnifiedTopology, and useCreatrIndex. Adding {family:4} to support IPv4 addressing mode, e.g., localhoast:3000.

NOTE: Some debugging statements using console.log were not totally commented out.


NOTICE: As of 11/20/20, The following packages have been upgraded due to dependency vulnerabilities:

mongodb --> 3.6.3 bcrypt --> 5.0.0

NOTICE: As of 1/20/20, The following packages have been upgraded due to dependency vulnerabilities:

mongoose --> 5.8.9 mongodb --> 3.5.2 bcrypt --> 3.0.0 node-pre-gyp lodash


Code Readme

Outline of projects

unit 0

Lesson 2

unit 1

Lesson 3

Lesson 4

Lesson 5

Lesson 6

Lesson 7

unit 2

Lesson 8

Lesson 9

Lesson 10

Lesson 11

Lesson 12

unit 3

Lesson 13

Lesson 14

Lesson 15

Lesson 16

unit 4

Lesson 17

Lesson 18

Lesson 19

Lesson 20

Lesson 21

unit 5

Lesson 22

Lesson 23

Lesson 24

Lesson 25

unit 6

Lesson 26

Lesson 27

Lesson 28

Lesson 29

unit 7

Lesson 30

Lesson 31

Lesson 32

Lesson 33

unit 8

Lesson 34

Lesson 35

Lesson 36

Lesson 37

About

Code samples for Get Programming with Node.js (See verhagen's VM setup for exercises in this book: https://github.com/verhagen/get-programming-with-nodejs)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 59.3%
  • EJS 33.3%
  • CSS 6.4%
  • Other 1.0%