DEV Community

Cover image for 1-Nodejs Course 2023: Introduction To Nodejs
Hasan Zohdy
Hasan Zohdy

Posted on • Edited on

1-Nodejs Course 2023: Introduction To Nodejs

What is NodeJs

NodeJs is a JavaScript runtime built on Chrome's V8 JavaScript engine. It is used to build fast and scalable backend applications. NodeJs is an open-source, cross-platform,.

🎨 What this course will cover

This course will cover the following topics:

  • Introduction to NodeJs
  • What you should know before taking this course
  • Preparing your development environment
  • Installing NodeJs
  • Creating a NodeJs application
  • HTTP Request Life Cycle
  • Working With MongoDB Database
  • Working With Fastify Framework.
  • Creating secure API endpoints.

What you should know before taking this course

You should have a good understanding of Javascript Strings, Arrays, Objects, Functions, and Classes. also basics of Typescript is a plus.

Preparing your development environment

What we need is just an editor, VSCode is a good choice. and a terminal for running commands.

If you're a Windows user, use Git Bash as your terminal. If you're a Mac or Linux user, use the default terminal.

🔥 Installing NodeJs

You can download NodeJs from here choose the LTS version.

Once the installation is done, open your terminal and type node -v to check the version of NodeJs you have installed.

Installing Yarn

Yarn is a package manager for NodeJs. It is faster and more secure than npm. You can install it from here.

Installing MongoDB

MongoDB is a NoSQL database. You can download it from here.

Don't forget to install MongoDB Compass, it's a GUI for MongoDB.

Also don't forget to add MongoDB to your PATH.

Once the installation is done, open your terminal and type mongod to check if MongoDB is installed correctly.

For the time of this article, MongoDB version is 6.

⚡ Create New Project

Now let's create a new project, open your workspace folder and run the following command inside it

npx create-mongez-app backend-app
Enter fullscreen mode Exit fullscreen mode

If asked to install dependencies, type y and press enter.

Creating new app

Now select the application type Node Js (Typescript) Then select Basic as the application template and hit Enter.

This command will make a boilerplate project for you, it will install a very basic Typescript Nodejs project with Nodemon watcher to watch for any changes in your code and restart the server automatically.

Once the installation is done, we're ready to to start our project.

🎨 Conclusion

In this lesson, we learned what is NodeJs, what this course will cover, what you should know before taking this course, preparing your development environment, installing NodeJs, installing Yarn, installing MongoDB, and creating a new project.

In our next lesson, we will learn what are HTTP Requests and what is life cycle of HTTP Request.

🎨 Project Repository

You can find the latest updates of this project on Github

😍 Join our community

Join our community on Discord to get help and support (Node Js 2023 Channel).

🎞️ Video Course (Arabic Voice)

If you want to learn this course in video format, you can find it on Youtube, the course is in Arabic language.

💰 Bonus Content 💰

You may have a look at these articles, it will definitely boost your knowledge and productivity.

General Topics

Packages & Libraries

React Js Packages

Courses (Articles)

Top comments (0)