All About Backend Development: A Comprehensive Guide for Aspiring Developers
Backend development is the backbone of modern applications, ensuring functionality, scalability, and security. In this guide, we delve into everything you need to know about backend development, including:
The role of the backend in web and mobile applications.
Popular backend programming languages and frameworks (Node.js, Python, Java, etc.).
Key concepts like APIs, databases, and server architecture.
Best practices for performance optimization and secure coding.
An overview of DevOps, cloud computing, and backend deployment.
Whether you're a beginner or looking to sharpen your skills, this blog provides insights to help you master backend development and build powerful applications.
so let’s begin with :→
1> node js
2> express js
3> mongo db
4>graph ql
5>sql part(my sql ,squalite and postgress sql)
6>prisma and many more
let’s go to this amazing journey !!!
Node js :→
0> installing the node js :→
NODE JS (CLICK on this to install it)
after installing it . check if it’s installed or not.
node -v
it should give the version number that means we have successfully done it.
1> hello world in js and history of it :→
hello world in js :→
console.log("hello world");
history of node js :→
At first the js code will run on all the browser with the help of js engines in the browser like (v8 engine, chrome safari) has it’s own server.
node js developer took the open-source “v8 engine” and added c++ code and made a js run-time named “node js”.
what node js help us to do ?
as node js is a run-time. It just help us to execute the “javascript” code outside of the browser with any engine now!!!
through it does not have all the things like “window” and “DOM“ but all in all it have all the things that use for server-side devlopment.
2>Modular Programming / modules in js :→
MODULES : —> bundles of functions/functions when we use that by importing and exporting.
let’s assume we have 2 files :→
1st is “math.js” and other is “cal.js" in the math.JS we will store the all “mathematical function” like addition, substraction , multiplication and division . Now from math.js we will export the functions with
“module.exports={ all the functions } "
that’s how we export the functions as bundle now let’s see how to call them and import the modules. let’s see 👀
function add(a,b){
return a+b;
}
function sub(a, b) {
return a - b;
};
function multiply(a, b) {
return a * b;
}
function division(a, b) {
return a / b;
}
module.exports = {
add,
sub,
multiply,
division,
};
in cal.js we will import these modules. we will do it by
const {function names}=requires(“module name“)
here modules can be built-in module, 3rd party module or we can use the module the module we have made too. let’s see it in “cal.js”
const { add, sub, multiply, division } = require("./math");
console.log(add(2 , 20));
console.log(sub(10, 2));
console.log(multiply(2, 3));
console.log(division(10, 2));
“./” :—> represent the current directory in where we have made the file./
3> file handling in node js :—>
to access it we have to use “fs” module.