Skip to content

Commit

Permalink
Merge pull request #27080 from mekbibDev/patch-3
Browse files Browse the repository at this point in the history
NodeJS Course Getting Started: Add a reading assignment for createserver
  • Loading branch information
fortypercenttitanium authored Jan 16, 2024
2 parents 2800913 + de6d04c commit 2a3f3d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nodeJS/introduction_to_nodeJS/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Like we learned in the introduction lesson, Node.js is really just JavaScript. So a basic understanding of JavaScript is necessary in order to understand Node. For this reason, it is highly recommended that you take our prerequisite [JavaScript course](https://www.theodinproject.com/paths/full-stack-javascript/courses/javascript) before continuing with this course.

### Lesson overview

This lesson will take you through a tutorial that will teach you the basic modules and functions that you need to get up and running with Node.js. The project that comes at the end of this section will ask you to use Node to create a basic website that will include an `Index`, `About` and `Contact Me` page. So while learning the topics in this lesson, be on the lookout for things that might help you complete the project.

<div class="lesson-note" markdown="1">
Expand Down Expand Up @@ -34,6 +36,7 @@ By the end of this lesson, you should be able to do the following:
- Learn quickly about .env files and how we use them [here](https://nodejs.org/en/learn/command-line/how-to-read-environment-variables-from-nodejs)! This will become very important in the future when working with databases and other sensitive credentials!
- HTTP Module
- Learn [how to make HTTP requests with Node](https://github.com/nodejs/nodejs.dev/blob/aa4239e87a5adc992fdb709c20aebb5f6da77f86/content/learn/node-js-web-server/node-make-http-requests.en.md).
- Checkout `http.createServer` from the [http module](https://nodejs.org/api/http.html). The documentation shows optional parameters it can accept which you may or may not use. For now, you just need to know that the `createServer` method creates an HTTP server that accepts handlers that will be executed every time we get a request.
- File System
- First, take a look at the [fs module](https://github.com/nodejs/nodejs.dev/blob/aa4239e87a5adc992fdb709c20aebb5f6da77f86/content/learn/node-js-modules/node-module-fs.en.md) that we use heavily for working with files in Node.
- Then, let's start [writing files](https://nodejs.org/en/learn/manipulating-files/writing-files-with-nodejs) in Node.
Expand All @@ -48,7 +51,7 @@ By the end of this lesson, you should be able to do the following:
- Follow along the [Event Emitter](https://nodejs.org/en/learn/asynchronous-work/the-nodejs-event-emitter) section.
- Look into [this](https://github.com/nodejs/nodejs.dev/blob/aa4239e87a5adc992fdb709c20aebb5f6da77f86/content/learn/node-js-modules/node-module-events.en.md) section to see the `events` module.
- Optional Extra Credit!
- Although a bit outdated, the W3 Schools introduction to Node.js is super useful! Go to the [W3 Schools node tutorial](https://www.w3schools.com/nodejs/default.asp) and code along with the following lessons (which should be listed on the sidebar of their site). Specifically, work from the **Node.js Intro** through to **Node.js Events**. You can look at the **File Uploads** and **Email** sections if you're feeling particularly ambitious!
- Although a bit outdated, the W3 Schools introduction to Node.js is super useful! Go to the [W3 Schools node tutorial](https://www.w3schools.com/nodejs/default.asp) and code along with the following lessons (which should be listed on the sidebar of their site). Specifically, work from the **Node.js Intro** through to **Node.js Events**. You can look at the **File Uploads** and **Email** sections if you're feeling particularly ambitious!

<div class="lesson-note lesson-note--warning" markdown=1>
The URL module is very outdated. Refer to the earlier link if you run into issues in the Node.js URL Module from W3.
Expand Down

0 comments on commit 2a3f3d9

Please sign in to comment.