Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dkelosky/hello-wto
https://github.com/dkelosky/hello-wto
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dkelosky/hello-wto
- Owner: dkelosky
- Created: 2020-07-20T20:17:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T14:35:41.000Z (about 2 years ago)
- Last Synced: 2024-10-19T02:15:19.787Z (3 months ago)
- Language: C++
- Size: 245 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js Hello WTO on z/OS
This project demonstrates calling HLASM/Metal C from Node.js. It is a work in progress (much could be cleaned up to make this process smoother).
```JavaScript
var addon = require('bindings')('wto');console.log(addon.wto("hello from node.js", 123));
```![Node.js Hello WTO](./doc/images/hello-wto.png)
## Prereq
`npm install -g @zowe/cli`
## Profiles
`zowe profiles create zosmf ...`
`zowe profiles create uss ...`## Scripts
Update `package.json` to replace `ibmuser` with your user and location preference.
## One Time Setup
`npm run setup`
- allocate zfs
- mount
- upload source
- configure `node-gyp`
- update `node-gyp` Makefile
- `make wtoexec.c` into `wtoexec.o`
- build the project## Subsequent Changes & Builds
`npm run upload`
- upload source files`npm run remote:build`
- invoke `make` and `node-gyp` build