From b66546204e14cda63a56aaa501e1c742e338db3d Mon Sep 17 00:00:00 2001 From: Vladimir Dementyev Date: Fri, 3 Nov 2023 16:50:07 -0700 Subject: [PATCH] add not about npm anycable-go to serverless --- docs/guides/serverless.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/guides/serverless.md b/docs/guides/serverless.md index 8ac4d37..fccfde9 100644 --- a/docs/guides/serverless.md +++ b/docs/guides/serverless.md @@ -195,6 +195,21 @@ fly launch --image anycable/anycable-go:1 --generate-name --ha=false \ --env ANYCABLE_RPC_HOST=https:///api/anycable ``` +## Running AnyCable-Go locally + +There are plenty of ways of installing `anycable-go` binary on your machine (see [../anycable-go/getting_started.md]). For your convinience, we also provide an NPM package that can be used to install and run `anycable-go`: + +```sh +npm install --save-dev @anycable/anycable-go +pnpm install --save-dev @anycable/anycable-go +yarn add --dev @anycable/anycable-go + +# and run as follows +npx anycable-go +``` + +**NOTE:** The version of the NPM package is the same as the version of the AnyCable-Go binary (which is downloaded automatically on the first run). + [vercel-anycable-demo]: https://github.com/anycable/vercel-anycable-demo [Fly]: https://fly.io [anycable-serverless-js]: https://github.com/anycable/anycable-serverless-js