Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.9 KB
Raw Blame

Cloud Storage

The Rust backend is split across deployable processes in services/, reusable libraries in crates/, and deployment definitions in infra/.

Development and testing

  • Rust development: toolchain, build/check commands, and tests for the affected packages.
  • Database development: local test databases, migrations, SQLx cache preparation, and approved destructive resets.
  • Running locally: frontend against hosted services or a full local stack.
  • Cursor Cloud: Cloud-only setup and rebuild entry points.

Deployment

To learn more read the infra documentation.

Instructions

  • Lambda artifacts under target/lambda are built by CI for deployments. For local Pulumi deploys, run just build_lambdas first.
  • cd infra
  • install node modules npm i
  • ensure you are on your correct AWS account and have pulumi cli logged into your correct work account
  • pulumi up
  • select the stack
  • read and understand the changes that are going to happen and ensure they are all to be expected
  • done.

Diagram

flowchart LR
dss(Document Storage Service)
docxunzip(Docx Unzip Lambda)
shacleantrigger(Sha Cleanup Trigger Lambda)
shacleanworker(Sha Cleanup Worker)
docx_upload[(Docx Upload Bucket)]
doc_storage[(Doc Storage Bucket)]
db[(MacroDB)]
cache[(Cloud Storage Cache)]
docmapping(Document Mapping Table)
docperms(Document Permissions Table)

dss --> doc_storage
dss --> docx_upload
dss --> db
dss --> cache
dss --> docmapping
dss --> docperms

docx_upload --unzip docx file--> docxunzip

docxunzip --> cache
docxunzip --> db
docxunzip --> doc_storage
docxunzip --> doc_mapping

shacleantrigger --triggers worker to cleanup unused bom parts--> shacleanworker
cache --> shacleanworker
shacleanworker --> doc_storage