Skip to content

Add SANO sample#474

Open
VegetarianOrc wants to merge 9 commits into
mainfrom
amazzeo/sano-sample
Open

Add SANO sample#474
VegetarianOrc wants to merge 9 commits into
mainfrom
amazzeo/sano-sample

Conversation

@VegetarianOrc

Copy link
Copy Markdown
Contributor

Add a sample for using standalone nexus operations.

@VegetarianOrc VegetarianOrc requested a review from a team as a code owner June 9, 2026 21:14
Comment thread nexus-standalone-operations/src/worker/handler.ts
Comment thread nexus-standalone-operations/src/starter.ts
Comment thread nexus-standalone-operations/src/starter.ts Outdated
@VegetarianOrc VegetarianOrc force-pushed the amazzeo/sano-sample branch from ee02d83 to dfa8904 Compare June 9, 2026 23:21
Comment thread nexus-standalone-operations/src/mocha/nexus-standalone-operations.test.ts Outdated
Comment thread nexus-standalone-operations/src/starter.ts

@Evanthx Evanthx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK overall but following the readme commands didn't work for me?

service: myNexusService,
});

// Start sync echo operation and await the result immediately.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Should this comment say something about how this starts the standalone operation? Not important, but just reading the sample it's SUPER easy to miss what it's doing and how it's different.

npm install # or `pnpm` or `yarn`
```

2. Start a compatible Temporal Server on `localhost:7233`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed, it's done in the Prerequisites so this is duplicate

4. In one shell, start the Worker:

```sh
npm run start.worker

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried running this and oddly I get
npm error Missing script: "start.worker"

5. In another shell, execute the sample:

```sh
npm run starter

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gives me the error

> nexus-standalone-operations@0.1.0 starter
> ts-node src/starter.ts

sh: ts-node: command not found

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.

3 participants