1.6.0 • Published 1 year ago

@itasis/oasis-tools v1.6.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

oasis-tools

The tool for OASIS services

Prerequisites

  • NodeJS >= 14 (Recommend Node 16)
  • yarn@1.19.0 (Not using npm due to the workspaces feature)

How to use?

Create docker file

  • Script to execute:
  yarn oasis-tools create-docker 
  • Options(optional):
    • "--functions-dir": The directory containing the functions
    • "--root-dir": The root directory

Create index.ts files for services

  • Script to execute:
  npx ts-node --transpile-only --prefer-ts-exts node_modules/oasis-tools/cli.ts create-handler 
  • Options(optional):
    • "--functions-dir": The directory containing the functions
    • "--excludes": The services exclude when generating actions

Create actions for moleculer service

  • Script to execute:
  yarn oasis-tools create-moleculer 
  • Options(optional):
    • "--functions-dir": The directory containing the functions
    • "--packages-dir": The directory containing the packages
    • "--excludes": The services exclude when generating actions

Create a user or get token from existing user

  • Script to execute:
  yarn oasis-tools create-user --email your@mail.com --password test123456 --clientId xyz --poolId ap-southeast-1_AABBCC --region ap-southeast-1