---
# System prepended metadata

title: SOFTWARE ENGINEERING BOOTCAMP BLOCKFUSE LABS

---

# SOFTWARE ENGINEERING BOOTCAMP BLOCKFUSE LABS (Backend)

## Introduction 
Last week i started learning backend and it was fun and great but that is where all logics comes in and all my frontend projects i would implement backend for those that need backend.

### What is Backend?
Backend, also known as the server-side, is the part of a web application that operates behind the scenes to handle data processing, business logic, and communication with databases. It is responsible for managing server operations, storing and retrieving data, processing user requests, and ensuring the application functions securely and efficiently. it is where al logics and where everything that happens in our frontend behind the scenes backend is what is happening.

### Why need Backend?
A backend is essential for any web application that requires data persistence, security, and complex processing, as it handles the server-side logic, data storage, and communication between the user interface known as (frontend) and databases. Without a backend, applications cannot securely store user data, validate inputs, or manage complex business logic, which are critical for functionality and user trust.

### Languages used for Backend?
- Nodejs is a Javascript runtime and also a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.
- Python is aslo used to write backend servers,

### Nodejs
Nodejs is a Javascript runtime and also a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.

#### core modules or Nodejs
- Filesystem ( fs-modules ) -- The filesystem (fs) module is a built-in Node.js module that allows you to work with files on your computer. it lets you :-
 -Create files
 -Read files
 -Update files
 -Delete files
 -Work with directories (folders)
 
 NOTE: you dont need to install the fs because it is a built-in nodejs module
```
const fs = require("fs");

fs.writeFileSync("hello.js", "Hello, Node.js!");

const data = fs.readFileSync("hello.js", "utf8");
console.log(data);
```
firstly you import the fs and then we are using it to create a file named hello.txt and then write "hello, node.js!" thats why we use the writeFileSync using the sychrornous method and then lastly we read the fle using readFileSync and then console the data from the file


- ReadLine ( rl-module ) -- The readline module allows you to take input from users directly in the command line (terminal). it is used to ask the user question and he answer.

```
const readline = require("readline");
const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
});
rl.question("What is your name? ", (answer) => {
  console.log(`Hello, ${answer}!`);
  rl.close();
});
```
we aslo use the import to import it and then we ask the user what is his name and then when he answer we console hello and the user's name.

CONCLUSION.
Backend is what stores the data and secure it for the user with authentication and It is responsible for managing server operations, storing and retrieving data, processing user requests, and ensuring the application functions securely and efficiently. it is where al logics and where everything that happens in our frontend behind the scenes backend is what is happening.