This article is about the roadmap for backend development using node js.
** Practice and consistency matter **
- Phase 1 [ 5 Days ]
- Phase 2 [ 6 Days ]
- Phase 3 [ 9 Days ]
- Phase 4 [ 10 days ]
- Phase 5 [ 10 Days ]
- Phase 6 [ 10 Days ]
- Phase 7 [ 10 Days ]
Phase 1 [ 5 Days ]
Import and exporting modules along with concepts like named exports and default exports.
Common JS Module
Each file is regarded as a separate module in Node.js.
Phase 2 [ 6 Days ]
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)
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 ]
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.
async..await to achieve async programs.
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.
Learn more about callback functions: Wikipedia
Phase 4 [ 10 days ]
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 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).
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 ]
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.
Then, learn about how to authenticate any user in your node application. Import concepts to learn in this phase are generating valid tokens.
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 ]
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.
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.
Phase 7 [ 10 Days ]
Keep revising and practicing what you have learned. This is the only way to achieve something significant in the development journey.
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.
- Understanding HTTP Endpoint & REST API of Serverless Database.
- How to implement Flags by Country and Language in Laravel
- Top 5 Websites for free Icons in 2022
- How to send mail using NodeJS and Gmail?
- How to Upload File using MERN Stack?
- CRUD API using the Node JS & MongoDB
- Models in the express app
- Working with database in Express App