-
Notifications
You must be signed in to change notification settings - Fork 313
docs: add starting guide #4101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
RafaelAPB
wants to merge
2
commits into
hyperledger-cacti:main
Choose a base branch
from
RafaelAPB:cleanup-docs-862/improve-docs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
docs: add starting guide #4101
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,21 @@ | ||
| # Developer's Guide | ||
|
|
||
| We will provide more instructions and guidelines soon. For now, please refer to the [Cacti Contributions guide](../contributing/how-to-contribute.md) and the [project best practices](../references/best-practices.md). | ||
| ## Getting Started | ||
|
|
||
| If you're new to Cacti, start with our comprehensive **[Getting Started Guide](./getting-started.md)** which covers: | ||
|
|
||
| - Understanding Cacti's architecture and what components are part of the framework | ||
| - Choosing the right level of integration for your project: | ||
| - **Level 1**: Using connectors as npm dependencies (lowest barrier to entry) | ||
| - **Level 2**: Running the API server with plugins (for non-Node.js projects) | ||
| - **Level 3**: Full framework integration with business logic plugins | ||
| - Step-by-step tutorials for each level of immersion | ||
|
|
||
| ## Additional Resources | ||
|
|
||
| For more detailed information, please refer to: | ||
|
|
||
| - [Cacti Contributions guide](../contributing/how-to-contribute.md) - How to contribute to the project | ||
| - [Project best practices](../references/best-practices.md) - Coding standards and conventions | ||
| - [Architecture overview](../architecture.md) - Understanding the integrated architecture | ||
| - [Cactus packages](../cactus/packages.md) - Documentation for individual components |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| --- | ||
| title: Cacti Technology Stack | ||
| --- | ||
| flowchart TB | ||
| subgraph YOUR_APP["YOUR APPLICATION"] | ||
| direction TB | ||
| FE["Frontend - React, Vue, Angular<br/>───────────<br/>NOT CACTI"] | ||
| BL["Business Logic / REST API<br/>───────────<br/>YOUR code OR Cacti Plugin"] | ||
| FE --> BL | ||
| end | ||
|
|
||
| subgraph LEVELS["CACTI INTEGRATION LEVELS"] | ||
| direction LR | ||
| L1["LEVEL 1<br/>─────────<br/>Connector<br/>Library Only"] | ||
| L2["LEVEL 2<br/>─────────<br/>API Server<br/>+ Plugins"] | ||
| L3["LEVEL 3<br/>─────────<br/>Full Framework<br/>+ BL Plugin"] | ||
| end | ||
|
|
||
| subgraph CORE["CACTI CORE COMPONENTS"] | ||
| direction LR | ||
| LC["Ledger<br/>Connectors"] | ||
| KC["Keychain<br/>Plugins"] | ||
| CP["Consortium<br/>Plugins"] | ||
| CC["Cross-Chain<br/>SATP, Weaver"] | ||
| end | ||
|
|
||
| subgraph LEDGERS["BLOCKCHAIN NETWORKS - NOT CACTI"] | ||
| direction LR | ||
| Fabric["Fabric"] | ||
| Besu["Besu"] | ||
| ETH["Ethereum"] | ||
| Corda["Corda"] | ||
| end | ||
|
|
||
| YOUR_APP --> LEVELS | ||
| LEVELS --> CORE | ||
| CORE --> LEDGERS | ||
|
|
||
| style YOUR_APP fill:#e1f5fe,stroke:#0277bd | ||
| style LEVELS fill:#fff3e0,stroke:#ef6c00 | ||
| style CORE fill:#e8f5e9,stroke:#2e7d32 | ||
| style LEDGERS fill:#fce4ec,stroke:#c2185b |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| --- | ||
| title: Level 1 - Connector as Library | ||
| --- | ||
| sequenceDiagram | ||
| participant App as Your Node.js App | ||
| participant Svc as Your Service Layer | ||
| participant Conn as Cacti Connector<br/>(npm dependency) | ||
| participant BC as Blockchain Network | ||
|
|
||
| App->>Svc: Business Operation Request | ||
| activate Svc | ||
| Svc->>Conn: connector.invokeContract() | ||
| activate Conn | ||
| Conn->>BC: JSON-RPC / gRPC Call | ||
| activate BC | ||
| BC-->>Conn: Transaction Result | ||
| deactivate BC | ||
| Conn-->>Svc: InvokeContractResponse | ||
| deactivate Conn | ||
| Svc-->>App: Business Response | ||
| deactivate Svc | ||
|
|
||
| Note over App,BC: Your code owns the entire stack.<br/>Cacti is just an npm dependency. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| --- | ||
| title: Level 2 - API Server with Plugins | ||
| --- | ||
| sequenceDiagram | ||
| participant App as Your App<br/>(Python/Java/Go) | ||
| participant API as Cacti API Server<br/>(Docker Container) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @RafaelAPB I think all cacti components (api server, connector plugin, and keychain plugin) would be within a single Docker Container, right? In that case, the "(Docker Container)" should not be just in the "Cacti API Server". Let me know your thoughts |
||
| participant Conn as Connector Plugin | ||
| participant KC as Keychain Plugin | ||
| participant BC as Blockchain Network | ||
|
|
||
| App->>API: REST POST /invoke-contract | ||
| activate API | ||
| API->>KC: Get signing credentials | ||
| activate KC | ||
| KC-->>API: Credentials | ||
| deactivate KC | ||
| API->>Conn: invokeContract(request) | ||
| activate Conn | ||
| Conn->>BC: JSON-RPC Call | ||
| activate BC | ||
| BC-->>Conn: Transaction Result | ||
| deactivate BC | ||
| Conn-->>API: Response | ||
| deactivate Conn | ||
| API-->>App: HTTP 200 + JSON | ||
| deactivate API | ||
|
|
||
| Note over App,BC: Your app uses REST API.<br/>Cacti runs as a containerized service. | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| --- | ||
| title: Level 3 - Full Framework Integration | ||
| --- | ||
| flowchart TB | ||
| subgraph CLIENT["Client Layer"] | ||
| FE["Your Frontend<br/>(React/Angular/Vue)"] | ||
| end | ||
|
|
||
| subgraph APISERVER["Cacti API Server"] | ||
| direction TB | ||
|
|
||
| subgraph YOURPLUGIN["Your Business Logic Plugin"] | ||
| EP["Your REST Endpoints"] | ||
| SVC["Your Services"] | ||
| EP --> SVC | ||
| end | ||
|
|
||
| subgraph CACTIPLUGINS["Cacti Plugins"] | ||
| direction LR | ||
| CONN["Ledger Connectors"] | ||
| KC["Keychain"] | ||
| CONS["Consortium"] | ||
| end | ||
|
|
||
| YOURPLUGIN --> CACTIPLUGINS | ||
| end | ||
|
|
||
| subgraph LEDGERS["Blockchain Networks"] | ||
| direction LR | ||
| L1["Fabric"] | ||
| L2["Besu"] | ||
| L3["Ethereum"] | ||
| end | ||
|
|
||
| CLIENT --> APISERVER | ||
| CACTIPLUGINS --> LEDGERS | ||
|
|
||
| style CLIENT fill:#e3f2fd,stroke:#1565c0 | ||
| style YOURPLUGIN fill:#fff8e1,stroke:#ff8f00 | ||
| style CACTIPLUGINS fill:#e8f5e9,stroke:#2e7d32 | ||
| style LEDGERS fill:#fce4ec,stroke:#c2185b |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RafaelAPB I would just suggest decreasing the font size wherever there are boxes on top of the letters