Fastapi 基础
## Fastapi 基础 文档:https://fastapi.tiangolo.com/zh/ `pip install fastapi uvicorn` `pip install pyjwt` jwt `pip install passlib[bcrypt]` 密码哈希 `pip install asyncpg` 如果使用异步操作pg数据库要安装 `python-multipart` 如果要实现上传文件需要安装 ```python
## Fastapi 基础 文档:https://fastapi.tiangolo.com/zh/ `pip install fastapi uvicorn` `pip install pyjwt` jwt `pip install passlib[bcrypt]` 密码哈希 `pip install asyncpg` 如果使用异步操作pg数据库要安装 `python-multipart` 如果要实现上传文件需要安装 ```python
## gin+templ实现高性能ssr网页渲染 templ文档:https://templ.guide/ 安装templ插件前提: `go get -tool github.com/a-h/templ/cmd/templ@latest` # 安装 templ 命令行 `go tool templ` ## vscode插件 `templ` 作者a-h `Templ Go To Definition` 可选插件 ## tailwin
## tauri 开发 假设已经安装好rust和node.js环境 `npm create tauri-app@latest` 或者 `pnpm create tauri-app` `pnpm install` ## vscode插件 Tauri ## ubuntu前置条件 ``` sudo apt update sudo apt install libwebkit2gtk-4.1-dev \ build-essential \
## 现代agent开发2026 ``` 用户输入 ↓ Agent Runtime ├─ 强模型:理解任务、规划、选择工具 ├─ Tool Registry / MCP:动态暴露工具 ├─ Async Executor:并发执行工具 ├─ Memory / RAG:拉上下文 ├─ Workflow Engine:长任务、重试、状态恢复 ├─ Guardrails:权限、审批、安全校验 └─ Observab
## codex使用 ## codex cli windows安装 `powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"` ## codex cli linux安装 `curl -fsSL https://chatgpt.com/codex/install.sh | sh` ## 共用claude规则和skill
## 常用MCP服务 ## 浏览器 自己指定浏览器启动调试模式并暴露端口: `--remote-debugging-port=9222 --user-data-dir="D:\code\chrome_test"` `http://127.0.0.1:9222/json/version` linux 创建一个缓存文件夹 `mkdir -p ~/.cache/playwright-chrome` playwright ``` {
## claude code使用 ## windos终端版 `irm https://claude.ai/install.ps1 | iex` 然后按提示添加用户环境变量 梯子将claude.ai加入代理 ``` anthropic.com claude.ai claude.com ``` ## linux终端 `curl -fsSL https://claude.ai/install.sh | bash` ``` echo 'exp
## Spec Kit开发范式 - 特意强调,使用claude code直接驱动浏览器,避免Playwright - 确保docker测试能跑通,以及约定运行的镜像 ## Spec Kit 本质:斜杠命令 = 预制的 prompt 模板 + 一点点约定俗成的文件路径 **1.安装** 这是一个python包推荐使用UV 先去 https://github.com/github/spec-kit/releases 看 tag找最新稳
## ESP-IDF + arduino组件开发 ESP32 Arduino文档:https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32/api-guides/tools/idf-component-manager.html ## 开发环境 Arduino组件目前仅支持到5.5版本(5.5.x不行) 在idf终端执行`idf.py add-dependency "
## ESP-IDF基础 项目地址:https://github.com/espressif/esp-idf.git 文档:https://docs.espressif.com/projects/esp-idf/zh_CN/release-v5.5/esp32s3/get-started/index.html (左上角选择硬件和版本) 安装VS code扩展:ESP-IDF,c++(cursor安装vsix版)、CMake Tools
尊重人不应该胜于尊重真理。-- 柏拉图