Set up dev environment (Python 3.8 + MariaDB) and add AGENTS.md - #3
Draft
soaringsoul wants to merge 1 commit into
Draft
Set up dev environment (Python 3.8 + MariaDB) and add AGENTS.md#3soaringsoul wants to merge 1 commit into
soaringsoul wants to merge 1 commit into
Conversation
Co-authored-by: soaringsoul <951683309@qq.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sets up a working development environment for this legacy Flask-AppBuilder 1.12.0 admin app ("数喆数据管理后台" / API 管理中心), which requires an old Python stack and a MySQL/MariaDB backend. No application code was modified.
What was done
uv) at/workspace/venvwith an era-appropriate pinned dependency set. Old pins are required becauserun.pyimportswerkzeug.contrib.fixers(removed in Werkzeug ≥ 1.0) and the app pinsflask-appbuilder==1.12.0/SQLAlchemy==1.2.12.flask-openid==1.2.5'suse_2to3build failure by installingsetuptools<58and using--no-build-isolation.api_managerdatabase androot/adas123456credentials fromconfig.py, and created an admin user (admin/admin).python run.py) serves athttp://localhost:8080/and completed an end-to-end hello-world: logged in and created a "数据供应商" (Data Supplier) record via the UI.AGENTS.mddocumenting non-obvious startup caveats (DB must be up before import due todb.create_all()at import time, how to start MariaDB, the pinned Python stack, credentials).Notes
/workspace/venv(idempotent).Walkthrough
login_and_create_provider.mp4
Login as
adminand create a new Data Supplier record end-to-end.New supplier record in list with success banner
To show artifacts inline, enable in settings.