| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Replicate fun-stack infrastructure locally: AWS lambdas with a HTTP/WS Server, local cognito.
Example on how to use it:
Terraform module for the corresponding AWS infrastructure:
SDK library to communicate with the infrastructure in your code:
npm install --global @fun-stack/fun-local-envfun-local-env --helpUsage:
Usage: fun-local-env <options> --http [<port>] --ws [<port>] --auth [<port>] --http-api <js-file-name> <export-name> --http-rpc <js-file-name> <export-name> --ws-rpc <js-file-name> <export-name> --ws-event-authorizer <js-file-name> <export-name>
sbt ~cli/fastOptJS/webpack
node cli/target/scala-2.13/scalajs-bundler/main/fun-local-env.js --ws 8080 --ws-rpc <path-to-js> handlerWebsocket
# or, with file watching:
echo cli/target/scala-2.13/scalajs-bundler/main/fun-local-env.js | entr -cnr node --enable-source-maps cli/target/scala-2.13/scalajs-bundler/main/fun-local-env.js --ws 8080 --ws-rpc <path-to-js> handlerWebsocketcd npm
mkdir -p .git # trick npm into thinking this is a git root
npm version patch
git push
git push --tagsIf you're using a node-version that's too new (>16.x), you might need to set this env-var if you get errors bundling the app.
export NODE_OPTIONS=--openssl-legacy-provider| Back | FazBrowse Home | New Git URL |