0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
In this project, we'll be building a Web Crawler in TypeScript using Node.js! To rank well in Google Search, websites need to internally link pages one to another. For example, my blog post about the benefits of cheap haircuts should probably have a link to my other blog post about the best places to get haircuts.
We're going to write a TypeScript application that generates an "internal links" report for any website on the internet by crawling each page of the site.
Before we dive into the project, let's make sure you are all set up properly. You will need:
I recommend NVM because it allows you to have multiple installations of Node.js on the same machine. After installing NVM, add an .nvmrc
file to the root of your project directory that contains a snippet of text:
22.15.0
This allows you to simply type nvm use
in your CLI while in the root of your project to activate the correct version of node! You may get an installation command to run if you don't yet have that version of node, but it's just another one-liner.
Check to make sure you've activated the correct version of node
by typing:
node --version
# Prints: v22.15.0
Run and submit the CLI tests.
The Boot.dev CLI requires you to be signed in to submit your solution!
Copy/paste one of the following commands into your terminal:
Run
bootdev run 3b13416a-55a6-4b5a-93ba-faf5741d6a2f
Submit
bootdev run 3b13416a-55a6-4b5a-93ba-faf5741d6a2f -s
Run the CLI commands to test your solution.
Using the Bootdev CLI
The Bootdev CLI is the only way to submit your solution for this type of lesson. We need to be able to run commands in your environment to verify your solution.
You can install it here. It's a Go program hosted on GitHub, so you'll need Go installed as well. Instructions are on the GitHub page.