Closed dsriseah closed 4 months ago
Testing Digital Ocean, logging in as non-root
ur net stop
git fetch
git checkout dev-sri/comment-module-2
npm ci && cd _ur
ur net start
confirm it works!
nohup ur net start &
browse to https://ursys.dsri.xyz/app ... WORKS browse to https://ursys.dsri.xyz/app/list ... WORKS
This PR is the second pass at porting the NetCreate Comment Manager so it can be reused in other projects that are being updated this year. It largely contains modularity improvements for universal systems:
APPBUILD
andAPPSERV
modules now in URSYS CORENetEndpoint
,NetSocket
,NetPacket
now in URSYS CORENetEndpoint
now uses new support classesServiceMap
andTransactionMgr
Additionally, all addons have been updated to draw from URSYS CORE. In particular:
net
addon, former development home of NetEndpoint, now uses COREwebplay
addon now uses universal APPBUILD and APPSERV, with hot-reload feature enabledSIMPLE TESTING
ur net start
andur net stop
) and see if it still works by browsing tolocalhost:8080
ur webplay
and browse tolocalhost:8080
in Chrome. Try modifyingwebplay.init
and see if LiveReload worksPLATFORM TESTING
Update
ursys.dsri.xyz
deployment on Digital Oceandev-sri/comment-module-2
branchnpm ci && cd _ur
nohup ur net start &
https://ursys.dsri.xyz/app
and see if it workshttps://ursys.dsri.xyz/app/list
and see if it worksDETAILED CHANGE LIST
URSYS Core Changes
net
addon now imports them from URSYS core.Network Abstraction Changes
NetEndpoint has been refactored to use two new support classes!
The reason for the change is two-fold:
ServiceMap
will allow centralization of protocol messages that will be used exclusively by system services that use URNET as its underlying transport. These are intended for auto-initializing, auto-managing core services like "Collections" and "Devices", which are critical for modular support of any persisted databases that follow our dataflow lifecycle.TransactionMgr
helps clarify the notion of what a transaction is, which may help with porting NetEndpoint to other network architectures (e.g. serverless platforms like AWS lamba).While not a priority now, ServiceMap is a foundational element of multi-network URSYS networks; see the discussion #22
Typescript Conversion Changes
There used to be several javascript files with the
.js
.mjs
.cjs
extensions, which made interoperability between typescript files.ts
.mts
difficult. They have all been converted to Typescript, finally, so only.ts
and.mts
files are in the URSYS project.@build-ursys.sh
shell script is now in the root which will build URSYS CORE and URSYS ADDONS libraries into their_dist
directories usingts-node-esm
in "transpile-only" mode. This is a Typescript-aware wrapper for NodeJS. This script is used in NetCreate which still uses the CommonJS format that predates ES Modules.