Closed leehuwuj closed 2 days ago
The pull request introduces significant changes to the application setup process, particularly in how ports are referenced and the installation logic is executed. The externalPort
parameter has been renamed to port
, affecting multiple files. The backend installation is now always executed, while frontend installation is conditional based on the framework. Test files have been updated to reflect these changes, simplifying conditions for executing tests. Additionally, several utility functions and middleware have been added or modified to enhance the application's functionality and error handling.
File | Change Summary |
---|---|
create-app.ts |
Renamed externalPort to port . Simplified backend installation logic and adjusted frontend directory creation. Removed commented-out README copy code. |
e2e/shared/multiagent_template.spec.ts |
Updated appType assignment and modified conditions for skipping tests based on templateFramework . |
e2e/shared/streaming_template.spec.ts |
Changed appType assignment and removed externalPort . Updated skip conditions for tests based on templateFramework . |
e2e/utils.ts |
Made externalPort optional in RunCreateLlamaOptions . Simplified application start waiting logic to use only port . |
helpers/devcontainer.ts |
Simplified renderDevcontainerContent logic by removing frontend parameter and streamlining command settings. |
helpers/env-variables.ts |
Renamed externalPort to port in createBackendEnvFile function. |
helpers/run-app.ts |
Updated return type of createProcess to Promise<void> , simplified runReflexApp and runApp functions for better error handling. |
helpers/types.ts |
Renamed externalPort to port in InstallTemplateArgs . |
helpers/typescript.ts |
Updated conditional logic for installing TypeScript dependencies. |
index.ts |
Removed --external-port option; updated usage of --port . Refined handling of data sources. |
questions/questions.ts |
Simplified framework selection logic in askProQuestions . |
templates/types/streaming/fastapi/README-template.md |
Updated instructions for running the development server and production commands. |
templates/types/streaming/fastapi/gitignore |
Added static/ directory to .gitignore . |
templates/types/streaming/fastapi/main.py |
Modified middleware setup and static file mounting logic based on environment. |
templates/types/streaming/fastapi/pyproject.toml |
Added new scripts for dev , prod , and build ; added rich dependency. |
templates/types/streaming/fastapi/run.py |
Introduced functions for managing frontend and backend servers, enhancing error handling. |
e2e/python/resolve_dependencies.spec.ts |
Removed externalPort from options in tests. |
e2e/shared/extractor_template.spec.ts |
Renamed frontendPort and backendPort to appPort . Removed externalPort from function call. |
e2e/typescript/resolve_dependencies.spec.ts |
Removed externalPort from runCreateLlama function call. |
questions/types.ts |
Modified QuestionResults type to include externalPort . |
.changeset/popular-dryers-check.md |
Introduced a patch for improving deployment workflow for Python templates. |
templates/types/streaming/fastapi/app/middlewares/frontend.py |
Added FrontendProxyMiddleware class for proxying requests to a frontend server. |
templates/components/agents/python/blog/README-template.md |
Updated commands for running development and production servers. |
templates/components/agents/python/financial_report/README-template.md |
Updated commands for running development and production servers. |
templates/components/agents/python/form_filling/README-template.md |
Updated commands for running development and production servers. |
templates/types/streaming/fastapi/app/config.py |
Added STATIC_DIR constant for dynamic static directory configuration. |
templates/.gitignore |
Deleted .gitignore , removing entries for ignored files. |
templates/README-fullstack.md |
Deleted README for fullstack project setup. |
createApp
function and handling of ports relate to modifications in multiagent_template.spec.ts
.streaming_template.spec.ts
.checkAppHasStarted
may relate to changes in e2e/utils.ts
.runCreateLlama
function connect to port handling changes.getTemplateEnvs
.In the meadow, changes bloom,
Ports renamed, dispelling gloom.
With each line, the code does dance,
Simplified paths, a developer's chance.
From backend calls to frontend cheer,
A brighter setup, drawing near! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Latest commit: 8079ba4b45c1bb58891c1a8da77fe2411cf0671d
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Is there a reason the pro option to generate a nextjs frontend when choosing express framework backend has been removed?
yes, it simplifies the code generator, you can still generate one nextjs frontend and one express backend separately
Summary by CodeRabbit
Release Notes
New Features
FrontendProxyMiddleware
for enhanced request handling between FastAPI and frontend servers.Improvements
Bug Fixes
externalPort
references to improve configuration consistency.Documentation