docs api

api server

program description
apiserver.js serves as somo job server, uses node, export, etc
apiutil.js similar loblog.php, handles mongo storage utils, logjobstart, etc
jobrun.js handles individual jobs run

api calls

call type format arguments return format description
/useradd GET url-encoded email, user, pw json adds a user
/userstatus GET url-encoded user json checks if a user exists
/jobsubmit POST url-encoded + files user, pw, _uuid, module json attempts to submit job
/jobcancel GET url-encoded user, pw, _uuid json attempts to cancel job
/jobstatus GET url-encoded user, pw, _uuid json returns job status
/jobresults GET url-encoded user, pw, _uuid, file json body + file returns job results


    ,"nodeapi" : {
        "listen" : {
            "host" : ""
            ,"port" : 8080


  • us_hydrodyn_cluster_submit
  • [done] make run directory, save file(s)
  • [done] log job start in mongo?
  • [done] check user/pw ?
  • [done] spawn job controller task
  • [done] add log job status to apiutil.js
  • start job
    • [done] jobsubmit
      • [done] get jobrun.js to run job locally
        • docker?
        • other resource formats
    • jobcancel
    • [done] jobstatus
    • jobresults
  • handle general genapp module runs...
    • api, right?
    • containers
    • node-docker-api to run
  • node dependencies:
    sudo npm i -g express express-fileupload body-parser http mongodb@~3.0.0 request-ip validator
    sudo npm i -g --unsafe-perm bcrypt
    # for one case of ubuntu 16 
    export NODE_PATH=/usr/lib/node_modules

mongo issue deprecation:

   "dependencies": {
    "mongodb": "~3.0.8"
  • us_hydrodyn_cluster_status
    • look at svn diff's to us_hydrodyn_cluster_config
      • methinks that's the last one...
Last modified 2 years ago Last modified on Sep 6, 2018, 7:55:58 AM