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
Building a Scalable Design System with Sketch
lauravandoore
462
33k
VelocityConf: Rendering Performance Case Studies
addyosmani
329
24k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
5
620
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
14
1.5k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.7k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.6k
Side Projects
sachag
454
42k
BBQ
matthewcrist
88
9.7k
Balancing Empowerment & Direction
lara
1
90
The Invisible Side of Design
smashingmag
299
50k
The Art of Programming - Codeland 2020
erikaheidi
54
13k
Agile that works and the tools we love
rasmusluckow
329
21k
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