# Introducing Node

從這一單元開始,我們將會使用資料庫來開發一個應用程式,這需要後端程式語言的支持,所以這一單元將會介紹 Node.js。

# MySQL and Other Languages

# BUT WHAT ABOUT PHP

# Introduction to JOIN US app

# Setting Up Cloud9 for Node

# 5 Minute NodeJS Crash Course

# CODE: 5 Minute Node Crash Course

Print "HELLO WORLD" 500 times using Node:

for (var i = 0; i < 500; i++) {
  console.log("HELLO WORLD!");
}

Execute file with:

$ node filename.js

# Note about Faker install

在下一個單元會使用 Faker 套件包來生成虛擬的測試資料,但如果在專案資料夾下沒有 package.json 的話可能會出現警告訊息,可以忽略他或是創建一個 app.js 文件並執行以下代碼:

$ npm init -y

# Introduction to NPM and Faker

# CODE: Introduction to NPM and Faker

# Introducing the MySQL Package

# Note about connecting Node to MySQL

# Connecting Node to MySQL

# CODE: Connecting Node to MySQL

# Creating Our Users Table

# CODE: Creating Our Users Table

# Selecting Using Node

# CODE: Selecting Using Node

# Inserting Using Node

# CODE: Inserting Using Node

# Some MySQL/Node Magic

# Bulk Inserting 500 Users - Finally!

# CODE: Bulk Inserting 500 Users

# 500 Users Exercises

# 500 Users Exercises Solutions

# CODE: 500 Users Exercises Solutions

Last Updated: 12/15/2020, 10:27:30 PM