Be node js backend developer in 50 days

Share

This article is about the roadmap for backend development using node js.

** Practice and consistency matter **

Phase 1 [ 5 Days ]

PHASE 1

Basic JavaScript

Learn basic javascript concepts like : variables.constants, conditional statements, loops, objects, ES6 functions, function & callback functions. There’s a lot in javascript itself, but these concepts will prepare you for node js development.

ES6 Modules

Imagine a situation where it is necessary to reuse particular JavaScript code. The idea of modules from ES6 saves the day.

An associated body of JavaScript code is organized into modules. Variables and functions can both be found in modules. A section of JavaScript code that has been written in a file is all that makes up a module. Variables and functions within a module are not usable by default. Exporting variables and functions from a module makes them accessible from within other files. In ES6, modules only function in strict mode. This implies that variables or functions declared in a module won’t be globally accessible.

Import and exporting modules along with concepts like named exports and default exports.

Common JS Module

The first method of packaging JavaScript code for Node.js was through CommonJS modules. The ECMAScript modules standard, which is supported by browsers and other JavaScript runtimes, is also supported by Node.js.

Each file is regarded as a separate module in Node.js.

Phase 2 [ 6 Days ]

PHASE 2

Introduction to NodeJS

Before writing codes in node js, we need to understand the working mechanism of node js and concepts like runtime, v8 engine, etc. It is always a best practice to read the official documentation of the technology we are going to use. [ Node JS Official Documentation ]. use some basic packages like http.

Package Manager (Yarn/NPM)

Since node js is based on the package paradigm. we must know about javascript packages, package managers, and how we install and remove any packages using package manager tools like npm or yarn.

Express Framework

Generally, we use node js for HTTP API development which is responsible for some computation on the backend. in the MERN stack, Express Js is used as a web framework for node js which provides us a basic web application layer with all essential features. express js itself is a javascript package that we can install in our node application using package manager tools.

After Completion of phase 2, you must be familiar with terms like express, npm/yarn, packages, server, ports, transport layer etc.

Phase 3 [ 9 Days ]

Phase 3

Async Programming

Asynchronous programming is a technique that allows your software to begin a work that could take a while to complete while still being able to respond to other events without having to wait until that task is complete. When that task is complete, the outcome is displayed on your software.

In javascript, we have concepts like async..await to achieve async programs.

Routes

Routes in web applications are responsible for channelizing requests to a route handler function. Under this topic, we learn most about the different types of requests [GET, POST, PUT, DELETE]. Also about parameters in routes, optional parameters, query parameters, and callback functions for route handling.

Callback Function

You already know what functions do and how to utilize them if you are experienced with programming. However, what does a callback function do? Callback functions are a crucial component of JavaScript, and if you get how they operate, your JavaScript skills will improve significantly.

In JavaScript, functions are objects. Can we pass objects to functions as parameters? Yes.

Learn more about callback functions: Wikipedia

Phase 4 [ 10 days ]

Days 4

Controllers

Controllers are basically a request handler function that sends a response to the corresponding request. While learning about controllers, we must focus on concepts like request object, response object, and how to send a response.

Middlewares

Middlewares are something that plays a role between route and controllers. for a real-life example, consider a campus where students are only allowed to enter into college premises if they have a valid identity card. Now, a person (middleware) is responsible to check the identity card of each student. Only after a successful check, the student gets entry into college premises (response).

Databases

To build a scalable web application with HTTP API features, mostly MongoDB is used. it is a non-relational, object-oriented database. Alike the relational model, where data is present in tabular form, here it is present in an object form.

Phase 5 [ 10 Days ]

Phase 5

Working with Models

Now, when you have to work and store data in the database, you must learn about data models. This concept basically deals with data types, validations, and custom relations with another data model.

Authentication

Then, learn about how to authenticate any user in your node application. Import concepts to learn in this phase are generating valid tokens.

Cookies

Small pieces of data known as cookies are delivered to the client along with server requests. Cookies have a variety of purposes; you can use them to add user-specific features to your online application and to keep track of user sessions. To accomplish this, we’ll utilize the cookie-parser module of npm, which offers middleware for cookie parsing.

Phase 6 [ 10 Days ]

Phase 6

Web Server

Now, it’s time to learn about web servers and how they work. I personally prefer learning this concept. Understanding web servers help in deploying applications on servers.

Nginx is widely used for node js applications. Learn about Nginx configuration.

Deployment

Now, it is time to deploy your application on the internet. I prefer Heroku for beginners. If you have a scalable application to deploy you can go for AWS or digital ocean.

Testing

Testing is not mandatory if you are in your learning phase you have to learn about unit testing when you are working on huge projects and don’t want to take any risks.

Furthermore, you can use Mocha or Jest for testing purposes in the node applications.

Phase 7 [ 10 Days ]

Revision

Keep revising and practicing what you have learned. This is the only way to achieve something significant in the development journey.

Programming principles

Follow standard programming principles. it helps in code minimization, and understanding other programmers’ codes.

That is a perfect roadmap for anyone who is interested to learn the backend for developing HTTP APIs using node js.

Backend development series: https://codewithsudeep.com/category/javascript/nodejs/

Share
Sudeep Mishra

Sudeep Mishra

Healing

%d bloggers like this: