Day 0: Introduction to Backend Development – Setting the Foundation

day-0:-introduction-to-backend-development-–-setting-the-foundation

Welcome to Day 0 of my #100DaysOfMiva challenge! Today, I’m diving into the world of backend development, starting with a foundational understanding of what backend development is and how it fits into the broader scope of web development.

What is Backend Development?
In web development, there are two main parts: frontend and backend. The frontend is the part of a website or web application that users interact with, the visuals, buttons, text and layout. It’s like the friendly face of a cute puppy. The backend, on the other hand, is the complex and powerful engine that drives the whole application, it’s the beast that handles the logic, processes data and ensures everything runs smoothly behind the scenes.

Image description

When you visit a website like YouTube, everything you see is the frontend. But behind the scenes, the backend is working tirelessly to handle complex tasks like video streaming, user authentication and data processing.

Frontend vs. Backend

Frontend: The part of the application that users see and interact with, typically built using HTML, CSS and JavaScript.

Backend: The part of the application that users don’t see, where all the magic happens, involving servers, databases and APIs.

Image description

Understanding Backend Technologies
Backend development involves working with various technologies and languages that power the server-side of web applications. Some popular backend languages include Node.js, Python, Go and PHP. Today, we will focus on Node.js.

Installing Node.js
To get started with Node.js, we will need to install it on our system. The best way to do this is by using Node Version Manager (NVM), which allows us to manage multiple versions of Node.js on the same machine.

  1. Install NVM: Search for Node Version Manager install to find the official installation guide for your operating system (Windows, macOS, Linux). Follow the instructions to install NVM.

  2. Install Node.js: Once NVM is installed, you can install the latest version of Node.js by running the command:

nvm install latest

Or, if you need a specific version:

nvm install v16.14.0

  1. Switch Between Versions: You can switch between installed versions using:

nvm use v16.14.0

How the Internet Works From Browser to Server to Database

When we type a URL into our browser, a fascinating series of events takes place:

  1. Browser Request: Our browser sends a request to the server. For example, when we visit google.com, our browser requests the index.html file from Google’s server.

  2. Server Processing: The server receives the request and processes it. The server is like a translator, it understands the language of the backend which is Node.js and knows how to handle the request.

  3. Database Interaction: If the request requires data (like fetching your YouTube video recommendations), the server interacts with the database. The database stores all the data, like user information, videos and comments.

  4. API Calls: To communicate between the browser, server and database, the backend uses APIs (Application Programming Interfaces). An API acts like a bridge, enabling different parts of the application to talk to each other.

  5. Response to Browser: After processing the request, the server sends the required files (like index.html and other assets) back to the browser, which then renders the page we see.

Understanding APIs
APIs are the language of the internet, allowing different systems to communicate. For example, when you request a webpage, the server uses an API call to retrieve the necessary data from the database and send it back to the browser.

Image description

Tomorrow, we will explore APIs in more detail, diving into how they work, their importance in backend development and practical examples of API calls.

Stay tuned for Day 1 of the #100DaysOfMiva challenge, where we will build on today’s foundation and start coding our first APIs!

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
do-you-want-a-project-management-mentor?-read-these-tips-first!

Do you want a project management mentor? Read these tips first!

Next Post
docker:-uma-introducao-simples-com-legos

Docker: Uma Introdução Simples com Legos

Related Posts
鸿蒙next应用国际化:时间与日期格式化

鸿蒙Next应用国际化:时间与日期格式化

本文旨在深入探讨华为鸿蒙HarmonyOS Next系统(截止目前API12)在应用国际化中时间与日期格式化方面的技术细节,基于实际开发实践进行总结。主要作为技术分享与交流载体,难免错漏,欢迎各位同仁提出宝贵意见和问题,以便共同进步。本文为原创内容,任何形式的转载必须注明出处及原作者。 在全球化的应用场景中,正确处理时间与日期的格式化是提供优质用户体验的关键因素之一。不同地区和语言对于时间与日期的表示方式存在显著差异,鸿蒙Next系统提供了丰富的功能来满足这种多样化的需求。本文将详细介绍时间日期格式化选项、相对时间格式化、时间段格式化,以及常见时间日期格式化问题及解决方案,抛砖引玉。 一、时间日期格式化选项 (一)日期显示格式(dateStyle) 格式取值与示例 full:显示完整的日期信息,包括年、月、日、星期。例如,在中文环境下可能显示为“2023年10月15日 星期日”。 long:显示较为详细的日期,通常包含年、月、日和星期的缩写。如“2023年10月15日 周日”。 medium:显示适中的日期格式,一般有年、月、日。例如“2023-10-15”。 short:显示简洁的日期,可能只包含月、日和年的部分信息。比如“10/15/23”(在某些地区格式)。 根据区域和语言选择格式 开发者可以使用 DateTimeFormat 类,根据用户所在区域的语言和文化习惯选择合适的 dateStyle 进行日期格式化。例如:…
Read More