Python私教FastAPI+React构建Web应用02 什么是全栈Web应用
写在前面
作者:Python私教-张老师
时间:2025年10月07日
出处:电子书《Build Web Applications with FastAPI, React, and MongoDB》
翻译:英文是手抄的,可能会有错误,大家看到了请谅解一下。中文是使用有道词典翻译的。
改进:其中有些地方为了适配国内的阅读习惯以及录播课程,做了一些优化处理,可能会和原书不一样的地方。
简介:本篇文章主要介绍什么是Web全栈应用,让大家在学习之前,对这些基本概念有一个更好的理解,方便后续更深入的学习。
概述
A full-stack web application is a complete software application that encompasses both the frontend and backend components.
全栈式网络应用程序是一种完整的软件应用,它涵盖了前端和后端两个部分。
It’s designed to interact with users through a web browser and perform actions that involve data processing and storage.
它的设计目的是通过网络浏览器与用户进行交互,并执行涉及数据处理和存储的操作。
The Frontend
前端
The frontend of a web application is the part that users directly interact with.
网络应用程序的前端是用户直接与之交互的部分。
It’s responsible for the visual elements, user interface, and user experience.
它负责视觉元素、用户界面以及用户体验。
Technologies like HTML, CSS, and JavaScript are commonly used to build the frontend.
像 HTML、CSS 和 JavaScript 这样的技术通常被用于构建前端部分。
In the context of modern web development, frameworks like React have become increasingly popular due to their component-based architecture and efficiency.
在现代网页开发的背景下,像 React 这样的框架因其基于组件的架构和高效性而变得越来越受欢迎。
Example React Component
React 组件示例
import React from 'react';function Greeting(props){return <h1>Hello, {props.name}!</h1>;
}export default Greeting;