Skip to content

tegarimansyah/outerbase-commands-workspace

Repository files navigation

Outerbase Commands Workspace

Create and manage Outerbase command easily. With Outerbase command, you can easily create an endpoint and connect to your outerbase database. A single command can have one or more commands. You can use Javascript, Python and SQL for a node.

This repo will help you build multiple commands and multiple Javascript nodes, all in one place (monorepo). You can also spliting js files and import 3rd party dependency, then copy-paste the build result to the outerbase command dashboard.

Getting Started

Use this repo as a template and then clone your repo.

This is a pnpm workspace. For create a new node, run this command.

pnpm run new COMMAND_NAME NODE_NAME
pnpm --filter "COMMAND_NAME-NODE_NAME" install

NODE_NAME is optional. If empty, then it will create node-1.

You can develop your app in commands/COMMAND_NAME-NODE_NAME/src/index.js. You can install some dependencies or create other files and import from index.js. After that you can:

pnpm --filter "COMMAND_NAME-*" run build # build into a single file
pnpm --filter "COMMAND_NAME-*" run build-minify # build into a single file and minify (but preserve "UserCode" function name)
pnpm --filter "COMMAND_NAME-*" run build-minify-outerbase # build into a single file and minify and remove quote for {{request.*}} and {{node-*}}

For more information, please refer to this article and video demo.

About

Create and manage Outerbase Command easily

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published