Skip to content

Secondary development

非法操作 edited this page Sep 14, 2022 · 3 revisions

Frontend

The static assets is managed by webpack in frontend folder.And it is build to the flaskshop/static/build folder. If you modify any of it, you need to:

npm install
npm run build

Or you can run npm run dev for develop conveniently, npm run lint to use eslint fix the code format.

Backend

The plugin system is based on pluggy.

You can install the pluggin example pip install -e ./plugin_example, and then run the flask createdb to create the database of this plugin, now restart your server you will see the conversation in the frontend.