Skip to content

Commit

Permalink
JS/TS client sample (#10)
Browse files Browse the repository at this point in the history
* Initial work for JS client

Signed-off-by: worksofliam <[email protected]>

* Use correct package

Signed-off-by: worksofliam <[email protected]>

---------

Signed-off-by: worksofliam <[email protected]>
  • Loading branch information
worksofliam authored Aug 28, 2024
1 parent 763b447 commit b2c8a9c
Show file tree
Hide file tree
Showing 15 changed files with 1,118 additions and 7 deletions.
7 changes: 0 additions & 7 deletions javascript/README.md

This file was deleted.

4 changes: 4 additions & 0 deletions typescript/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PORT=3000
DB_HOST=hostname
DB_ID=userprofile
DB_PASSWORD=x
3 changes: 3 additions & 0 deletions typescript/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
build
.env
55 changes: 55 additions & 0 deletions typescript/.vscode/actions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[
{
"name": "Create RPGLE Program",
"command": "CRTBNDRPG PGM(&CURLIB/&NAME) SRCSTMF('&RELATIVEPATH') OPTION(*EVENTF) DBGVIEW(*SOURCE) TGTCCSID(*JOB)",
"deployFirst": true,
"environment": "ile",
"extensions": [
"RPGLE"
]
},
{
"name": "Create RPGLE Module",
"command": "CRTRPGMOD MODULE(&CURLIB/&NAME) SRCSTMF('&RELATIVEPATH') OPTION(*EVENTF) DBGVIEW(*SOURCE) TGTCCSID(*JOB)",
"deployFirst": true,
"environment": "ile",
"extensions": [
"RPGLE"
]
},
{
"name": "Create SQLRPGLE Program",
"command": "CRTSQLRPGI OBJ(&CURLIB/&NAME) SRCSTMF('&RELATIVEPATH') OPTION(*EVENTF) DBGVIEW(*SOURCE) CLOSQLCSR(*ENDMOD) CVTCCSID(*JOB) COMPILEOPT('TGTCCSID(*JOB)') RPGPPOPT(*LVL2)",
"deployFirst": true,
"environment": "ile",
"extensions": [
"SQLRPGLE"
]
},
{
"name": "Create SQLRPGLE Module",
"command": "CRTSQLRPGI OBJ(&CURLIB/&NAME) SRCSTMF('&RELATIVEPATH') OBJTYPE(*MODULE) OPTION(*EVENTF) DBGVIEW(*SOURCE) CLOSQLCSR(*ENDMOD) CVTCCSID(*JOB) COMPILEOPT('TGTCCSID(*JOB)') RPGPPOPT(*LVL2)",
"deployFirst": true,
"environment": "ile",
"extensions": [
"SQLRPGLE"
]
},
{
"extensions": [
"SQL",
"TABLE",
"VIEW",
"SQLPRC",
"SQLUDF",
"SQLUDT",
"SQLTRG",
"SQLALIAS",
"SQLSEQ"
],
"name": "Run SQL Statements (RUNSQLSTM)",
"command": "RUNSQLSTM SRCSTMF('&FULLPATH') COMMIT(*NONE) NAMING(*SQL)",
"deployFirst": true,
"environment": "ile"
}
]
23 changes: 23 additions & 0 deletions typescript/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/build/index.js",
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/build/**/*.js"
],
"preLaunchTask": "npm: build:dev",
"envFile": "${workspaceFolder}/.env"
}
]
}
Loading

0 comments on commit b2c8a9c

Please sign in to comment.