Skip to content

Conversation

@dodo920306
Copy link
Contributor

Summary

Restructure the backend codebase into independent Django applications to improve modularity and maintainability.

Changes

New Applications

  • user: User management module
  • auth: Authentication and authorization module
  • organization: Organization management module
  • agent: Agent management module (later merged into node)
  • node: Node management module
  • channel: Channel management module
  • chaincode: Chaincode management module

Code Optimization

  • Replace envsubst with pure Python implementation
  • Reduce duplicate code in paginators and serializers
  • Remove duplicate configuration assignments
  • Complete Node container creation functionality

Removed Items

  • Remove legacy api/routes/ structure
  • Remove unused agent-related code

Migration Notes

  • Run python manage.py migrate to apply new database schema
  • API endpoint paths may have changed, refer to api_engine/urls.py

Dependencies


🤖 This PR description was generated with AI assistance (Claude, Anthropic).

Signed-off-by: dodo920306 <[email protected]>
Signed-off-by: dodo920306 <[email protected]>
Signed-off-by: dodo920306 <[email protected]>
Signed-off-by: KIRIN.CHU 朱祐麟 <[email protected]>
Signed-off-by: dodo920306 <[email protected]>
Signed-off-by: dodo920306 <[email protected]>
@dodo920306 dodo920306 marked this pull request as draft December 14, 2025 15:30
@dodo920306
Copy link
Contributor Author

This is draft only because #741 hasn't been merged yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant