地基 · 项目怎么跑起来,JS/TS 到底要会哪些Foundations · how a project runs, and the JS/TS you actually need
在动 React 和 GraphQL 之前,先把「一个 JavaScript 项目是怎么运行的」搞清楚:Node、npm、package.json、scripts、目录结构、怎么跑测试、报错该从哪看起。然后只补两门考试真正会用到的 JavaScript 与 TypeScript。Before starting React or GraphQL, get clear on how a JavaScript project runs: Node, npm, package.json, scripts, the directory layout, how to run the tests, and where to look first when something fails. After that, only the JavaScript and TypeScript that the two exam projects actually use.
这一门本身不是考试,是另外两门的地基。考场上真正会卡住新手的往往不是 React 语法,而是「测试怎么跑」「这个报错是我写错了还是项目本来就坏的」「dependencies 和 devDependencies 有什么区别」这类问题。This course is not an exam itself. It is the base the other two stand on. What usually stops a beginner in an exam is not React syntax. It is questions like how to run the tests, whether an error is your own mistake or a defect that was already in the project, and what the difference is between dependencies and devDependencies.
react-notes-appReact Capstone,提供真实 package.json / tsconfig / vite 配置React Capstone, the source of the real package.json, tsconfig and vite config
react-notes-appgraphql-federation-practiceFederation Capstone,提供真实 subgraph package.json / pom.xmlFederation Capstone, the source of the real subgraph package.json and pom.xml
graphql-federation-practice从 Node.js 是什么开始,一路讲到「我怎么知道这个项目支持哪些命令」。全部用两个真实 assessment 的文件当例子。Starts at what Node.js is and ends at how to find out which commands a project supports. Every example is a real file from one of the two exam projects.
不做完整 JS 教程。只讲 CRUD 三件事(增删改)背后的数组与对象操作,以及 Q2 和 resolver 都离不开的异步。Not a full JavaScript course. It covers the array and object work behind adding, deleting and updating, plus the async parts that both Q2 and the resolvers depend on.
只讲两个考试里真实出现的:基本类型、type 与 interface、组件 props 类型、泛型参数,以及怎么读 tsc 的报错。Only what actually appears in the two exams: basic types, type versus interface, typing component props, generic parameters, and how to read a tsc error.