Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
node.jsのマイクロフレームワークでmysqlを触る
Search
naka
January 28, 2024
3
37
node.jsのマイクロフレームワークでmysqlを触る
naka
January 28, 2024
Tweet
Share
Featured
See All Featured
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
7
620
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.1k
GraphQLとの向き合い方2022年版
quramy
45
14k
Large-scale JavaScript Application Architecture
addyosmani
511
110k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.4k
Optimising Largest Contentful Paint
csswizardry
35
3.2k
Building Applications with DynamoDB
mza
94
6.3k
Reflections from 52 weeks, 52 projects
jeffersonlam
349
20k
The World Runs on Bad Software
bkeepers
PRO
67
11k
A Tale of Four Properties
chriscoyier
158
23k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
25k
Transcript
node.js DB
express Express Web ・ 一 小 Node.js Web ・ 用
・ 小 ・ 自 GET/POST ・ Node.js
・ ・ ・ HTTP GET POST URL 用 EJS Pug
HTML 生
express 入 npm init npm install express npm install nodemon
nodejs express npm list ΠϯετʔϧͰ͖͔ͨ֬ೝ
KTϑΝΠϧΛ࡞͠ɺҎԼͷίʔυΛ࣮͢Δ OPEFUFTUKTͰ࣮ߦ͢Δ ϒϥβΛ։͍ͯMPDBMIPTUʹΞΫηε͢Δ
ίʔυΛม͑ͨͱ͖ʹɺ͍͍ͪͪαʔόΛࢭΊΔͷ͕໘ͳͷͰ ͖ͬ͞ೖΕͨOPEFNPOΛ͏ npx nodemon test.js ͜ͷίϚϯυͰ࣮ߦͨ͠Βɺอଘ͢Δͨͼʹࣗಈతʹαʔό͕࠶ىಈ͞ΕΔ
1045ϦΫΤετΛड͚ͨ࣌ͷίʔυΛ࣮͢Δ QPTUNBOΛىಈͯ͠ MPDBMIPTUʹΞΫηεͯ͠ΈΔ
None
None
mySQL 入 npm install mysql mysql
mySQL
mySQL
mySQL
.Z42- OPEFKTNZTRMʹଓͯ͠JOTFSUΛ࣮ߦ͢Δ IUUQTNFCFFJOGPQPTU ʲ/PEFKTೖʳ.Z42-Λͬͨσʔλϕʔεૢ࡞ํ๏·ͱΊʂ IUUQTXXXTFKVLVOFUCMPH /PEFKTΞϓϦέʔγϣϯͱ.Z42-Λଓ͠Α͏ʂ IUUQTQSPHDPNEPDTOPEFKTNZTRM FYQSFTT ʲ/PEFKTೖʳॳ৺ऀͷͨΊͷ&YQSFTTೖʢ(&51045ʣ IUUQTXXXTFKVLVOFUCMPH
FYQSFTTͰ.7$ </PEFKT>/PEFKT &YQSFTTͰ.7$ͬΆ͘ॻ͍ͯΈΔ IUUQTTXBMMPXJODVCBUFDPNBSDIJWFTCMPH