Node.jsとNPM入門
Node.jsとは何か、バックエンド開発における利点、Node Package Manager(NPM)の使い方を学びます。
「Node.jsとNPM入門」はCoddyKit上の無料Node.js Backend Development Bootcampレッスンです。 これはレッスン1/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはNode.js Backend Development Bootcamp学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Node.js Backend Development Bootcampコースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
Welcome to Node.js!
Node.js is a server-side JavaScript runtime — an engine that runs your JS outside the browser, right on a server or your own machine.
Why Node.js is Awesome
Why developers love Node.js: one language front to back, blazing V8 speed, non-blocking I/O for high concurrency, and the massive NPM ecosystem.
How Node.js Works
Node uses an event-driven, non-blocking model: it kicks off a task, registers a callback, and moves on — handling tons of connections without waiting around.
Checking Your Node.js Setup
Check your setup with node -v. See a version number? You're good. If not, grab it from nodejs.org.
Your First Node.js Script
Let's write a classic Hello, World. Drop a console.log into a file named app.js — that's a full Node script.
// app.js
console.log("Hello from CoddyKit Node.js!");Running Your Node.js Code
Run it with node app.js from its folder. Node executes the script and prints your message to the terminal.
Meet NPM (Node Package Manager)
NPM (Node Package Manager) ships with Node and is the world's largest software registry. It installs third-party packages, shares your code, and tracks dependencies.
Starting a New Project with NPM
Start a project with npm init. It walks you through creating package.json — the file holding your project's metadata and dependency list.
Installing Packages with NPM
Add a library with npm install express. NPM downloads it into node_modules and records it in your package.json.
Quick Check on Node.js & NPM
Let's test your understanding of Node.js and NPM.
Recap: Node.js & NPM Fundamentals
You've got the basics: Node.js runs JS on the server, and NPM manages packages via node, npm init, and npm install. Next: modules.
よくある質問
「Node.jsとNPM入門」レッスンは無料ですか?
はい。「Node.jsとNPM入門」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Node.js Backend Development Bootcampコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Node.js Backend Development Bootcampコースには全4レッスンが含まれています。
「Node.jsとNPM入門」で何を学びますか?
Node.jsとは何か、バックエンド開発における利点、Node Package Manager(NPM)の使い方を学びます。 ブラウザで直接実行するハンズオンコードでNode.js Backend Development Bootcampを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
Node.js Backend Development Bootcampを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのNode.js Backend Development Bootcampは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン1/4です。
「Node.jsとNPM入門」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このNode.js Backend Development Bootcampレッスンでコードを書いて実行できますか?
はい。すべてのNode.js Backend Development Bootcampレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。