§2024-06-09
-
Building a Blog App with Node.js and MongoDB from Scratchby Jan 9, 2023]() by Edet Asuquo
¶Step 1. git clone@hc4nas02.yushei.net
alexlai@hc4nas02:~/nodejs_proj$ pwd
/home/alexlai/nodejs_proj
alexlai@hc4nas02:~/nodejs_proj$ ls
yushei_blog
alexlai@hc4nas02:~/nodejs_proj$ git clone https://github.com/eddy1759/altschool-exam--blogging_api.git
alexlai@hc4nas02:~/nodejs_proj$ mv altschool-exam--blogging_api/ yushei_blogging_api
alexlai@hc4nas02:~/nodejs_proj$ cd yushei_blogging_api/
alexlai@hc4nas02:~/nodejs_proj/yushei_blogging_api$ ls -al
total 508
drwxrwxr-x 11 alexlai alexlai 224 Jun 9 13:18 .
drwxrwxr-x 4 alexlai alexlai 52 Jun 9 13:20 ..
-rw-rw-r-- 1 alexlai alexlai 1095 Jun 9 13:18 app.js
drwxrwxr-x 2 alexlai alexlai 23 Jun 9 13:18 config
drwxrwxr-x 2 alexlai alexlai 56 Jun 9 13:18 controller
drwxrwxr-x 2 alexlai alexlai 25 Jun 9 13:18 db
drwxrwxr-x 8 alexlai alexlai 163 Jun 9 13:18 .git
-rw-rw-r-- 1 alexlai alexlai 17 Jun 9 13:18 .gitignore
drwxrwxr-x 3 alexlai alexlai 87 Jun 9 13:18 middleware
drwxrwxr-x 2 alexlai alexlai 36 Jun 9 13:18 model
-rw-rw-r-- 1 alexlai alexlai 1015 Jun 9 13:18 package.json
-rw-rw-r-- 1 alexlai alexlai 495335 Jun 9 13:18 package-lock.json
-rw-rw-r-- 1 alexlai alexlai 12165 Jun 9 13:18 README.md
drwxrwxr-x 2 alexlai alexlai 46 Jun 9 13:18 routes
drwxrwxr-x 2 alexlai alexlai 33 Jun 9 13:18 test
drwxrwxr-x 2 alexlai alexlai 23 Jun 9 13:18 utils
alexlai@hc4nas02:~/nodejs_proj/yushei_blogging_api$ rm -rf .git
alexlai@hc4nas02:~/nodejs_proj/yushei_blogging_api$
¶Step 2. check update
$ npm install npm-check-updates
$ $ ncu
Checking /home/alexlai/nodejs_proj/yushei_blogging_api/package.json
[====================] 23/23 100%
jest ^29.2.2 → ^29.7.0
nodemon ^2.0.20 → ^3.1.3
supertest ^6.3.1 → ^7.0.0
bcrypt ^5.1.0 → ^5.1.1
body-parser ^1.20.1 → ^1.20.2
dotenv ^16.0.3 → ^16.4.5
ejs ^3.1.8 → ^3.1.10
express ^4.18.2 → ^4.19.2
express-rate-limit ^6.7.0 → ^7.3.1
express-session ^1.17.3 → ^1.18.0
helmet ^6.0.1 → ^7.1.0
http-status-codes ^2.2.0 → ^2.3.0
joi ^17.6.4 → ^17.13.1
jsonwebtoken ^8.5.1 → ^9.0.2
moment ^2.29.4 → ^2.30.1
mongodb-memory-server ^8.9.5 → ^9.3.0
mongoose ^6.7.0 → ^8.4.1
passport ^0.6.0 → ^0.7.0
passport-jwt ^4.0.0 → ^4.0.1
winston ^3.8.2 → ^3.13.0
$ ncu -u
Upgrading /home/alexlai/nodejs_proj/yushei_blogging_api/package.json
[====================] 23/23 100%
jest ^29.2.2 → ^29.7.0
nodemon ^2.0.20 → ^3.1.3
supertest ^6.3.1 → ^7.0.0
bcrypt ^5.1.0 → ^5.1.1
body-parser ^1.20.1 → ^1.20.2
dotenv ^16.0.3 → ^16.4.5
ejs ^3.1.8 → ^3.1.10
express ^4.18.2 → ^4.19.2
express-rate-limit ^6.7.0 → ^7.3.1
express-session ^1.17.3 → ^1.18.0
helmet ^6.0.1 → ^7.1.0
http-status-codes ^2.2.0 → ^2.3.0
joi ^17.6.4 → ^17.13.1
jsonwebtoken ^8.5.1 → ^9.0.2
moment ^2.29.4 → ^2.30.1
mongodb-memory-server ^8.9.5 → ^9.3.0
mongoose ^6.7.0 → ^8.4.1
passport ^0.6.0 → ^0.7.0
passport-jwt ^4.0.0 → ^4.0.1
winston ^3.8.2 → ^3.13.0
Run npm install to install new versions.
$ npm install