Find the perfect coding resourcesLearn more

Learn Node.js

ScrimbaScrimba
Recommended
Meet Your Instructor
Tom Chant avatar

Tom Chant

Instructor

Tutor at Scrimba with experience since 2004. Specializes in JavaScript, Node.js, and making coding accessible and pain-free for learners.

3h 12m

Completion

Certificate included

Format

Interactive coding

Free

What You'll Learn

Grasp the core concepts of Node.js and its asynchronous nature

Design and build RESTful APIs from scratch

Understand and implement Server-Sent Events (SSE) for real-time data streaming

Work with Event Emitters to handle custom events

Understand Node.js event-driven architecture

Overview

Want to build lightning-fast, scalable, and efficient backends? Node.js is your answer! Whether you're crafting a simple API or architecting a full-scale web application, Node.js makes it easy, fast, and enjoyable to build powerful server-side applications that scale effortlessly. Node.js is a JavaScript runtime. Think of a runtime as an environment where your code runs. When you open your browser console and run JavaScript, that's the browser runtime. But when you run JavaScript from the command line on your PC or MacBook, that's Node.js. With Node.js, you can create everything from APIs to fullstack applications, all while using JavaScript across the entire stack. You can run it on a Raspberry Pi, a laptop, or even smart devices like a fridge or a traffic light camera. If a device supports Node.js as a runtime, you can use JavaScript to control it. The possibilities are endless! This course is all about building! We'll create three cool projects: The Wild Horizons API (an interactive API that showcases some of the world's most fascinating and unique natural wonders), a spooky app for users to upload their experiences with the paranormal, and your Solo Project will be a gold speculation app. This course is designed for anyone looking to level up their JavaScript skills by getting started with backend development. Whether you're a front-end developer expanding your expertise or a fullstack developer looking to refine your backend skills, this course will equip you with the tools to build scalable, efficient applications.

Table of Contents
1
Learn Node.js Intro4:19
2
Wild Horizons Intro2:30
3
The package.json file6:07
4
Initialize new Node.js project with NPM4:21
5
Build simple Express App5:20
6
Install Express from NPM2:29
7
NPM Scripts5:18
8
Create server.js file2:49
9
Node.js module system2:16
10
Import Express and build our server3:25
11
Start server on Port 30006:34
12
NPM nodemon and NPM script5:35
13
Installing NMP Package as dev dependency6:10
14
Setting up first route in Express3:45
15
Build GET /wildlife route2:59
16
Testing API with Thunder Client8:17
17
Build GET /wildlife/:id route6:37
18
Challenge: Build GET /wildlife/location/:location2:14
19
Answer: Build GET /wildlife/location/:location route3:45
20
Outro3:29
21
Intro2:45
22
Thunder Client Overview6:48
23
HTTP Request and Response9:10
24
HTTP Headers5:01
25
HTTP Request Body7:17
26
Getting data from URL query string2:30
27
Challenge - Build GET /wildlife/search route5:48
28
Answer - Build GET /wildlife/search route1:22
29
Types of Paths3:39
30
Build POST /wildlife5:14
31
Challenge: Build DELETE /wildlife/:id1:53
32
Answer: Build DELETE /wildlife/:id3:10
33
Challenge: Build PUT /wildlife/:id2:23
34
Answer: Build PUT /wildlife/:id2:42
35
Basic Authentication4:58
36
Secure Route with HTTP Basic Auth12:23
37
Refactoring our server.js file3:15
38
Use Express Router module7:39
39
Refactor and Extract wildlife-data.js module3:15
40
Extract delete logic8:23
41
Extract getWildlifeName logic2:35
42
Challenge: Extract addWildlife2:55
43
Answer: Extract addWildlife2:27
44
Extract updateWildlife4:54
45
Outro2:45

Share Your Experience

Sign in to leave a review and help others

No reviews yet. Be the first to review!