AIN Worker The project is written in Node.js.
- ESLint supported editor (IntelliJ, VSCode)
- Node.js 14.17+
- Yarn 1.22+ (
npm install -g yarn
)
- common: A collection of commonly used modules and variables.
- job: A collection of request job Method.
- util: utility code collections
- index.ts: entry point.
- worker.ts: About AIN Connect.
mkdir -p ~/ain-worker/{NAME}
yarn
[ENV_LIST, ex, NAME={NAME} ] yarn start
// example
NAME={NAME} \
APP_NAME=collaborative_ai \
NETWORK_TYPE=DEVNET \
CONTAINER_VCPU=1 \
CONTAINER_MEMORY_GB=3 \
DISK_GB=50 yarn start
yarn lint