Building an AI App Foundation Before Writing Business Logic
A project author documents seven preparation steps that made the Java, React and Python tiers start and communicate without implementing business features. The setup included 13 modules and more than 80 numbered decisions, an OpenAPI contract with 10 schemas, three repositories with AGENTS.md files, Dockerized middleware, health endpoints and end-to-end checks. The author says every listed health check returned HTTP 200, although authentication, uploads, indexing, evaluation and CI remained unimplemented.
The account offers a concrete contract-first setup pattern for AI-assisted application development, using AGENTS.md files to make repository boundaries explicit before feature work begins.
项目笔记:从空仓库到三端可启动,在写第一行业务代码之前,我做了哪些准备。
写在前面
我以前做项目有个坏习惯:上来就写 Controller、写页面。
写到一半才发现:表结构不对、接口对不上、端口冲突、前端连不上后端。然后开始返工,越改越乱。
所以这次换了个顺序:先把不可逆的东西定下来,再写业务。
三端能启动、能互相连通、能验证,但一行业务逻辑都不写。
#OpenAPI#PostgreSQL#Redis#MinIO#Milvus#Java 21#React#Python#FastAPI#LangGraph#LiteLLM#Langfuse