github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/__doc__/how-to.md (about)

     1  # W3bstream
     2  
     3  ## code structure
     4  
     5  ```
     6  .
     7  ├── __doc__
     8  ├── build
     9  ├── cmd
    10  │   ├── pub_client        # mock message pub client
    11  │   └── srv-applet-mgr    # applet management backend
    12  ├── pkg
    13  │   ├── enums             
    14  │   ├── errors
    15  │   │   └── status        # http status
    16  │   ├── models            # database models
    17  │   └── modules
    18  │       ├── applet        # applet
    19  │       ├── applet_deploy # applet deploy 
    20  │       ├── model         # applet model initialization
    21  │       ├── resource      # applet assert storage
    22  │       ├── testdata   
    23  │       └── vm            # wasm vm instance management
    24  └── testutil
    25  ```
    26  
    27  ## run
    28  
    29  > dependencies: mqtt and postgres
    30  
    31  ### dependencies (if need)
    32  
    33  ```sh
    34  make run_depends
    35  ```
    36  
    37  > modify `cmd/srv-applet-mgr/config/local.yaml` to use your config
    38  
    39  ### migrate database
    40  
    41  ```sh
    42  make migrate
    43  ```
    44  
    45  ### run server
    46  
    47  ```sh
    48  make run_server
    49  ```
    50