merging cleanup rollup. whee!!

This commit is contained in:
2025-08-11 16:11:13 -05:00
parent 0e681d2ff5
commit ed0cdaf643
10 changed files with 66 additions and 0 deletions

0
.gitignore vendored Normal file → Executable file
View File

20
1-index.html Executable file
View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title>Open MCT Tutorials</title>
<script src="node_modules/openmct/dist/openmct.js"></script>
</head>
<body>
<script>
openmct.setAssetPath('node_modules/openmct/dist');
openmct.install(openmct.plugins.LocalStorage());
openmct.install(openmct.plugins.MyItems());
openmct.install(openmct.plugins.UTCTimeSystem());
openmct.time.clock('local', {start: -15 * 60 * 1000, end: 0});
openmct.time.timeSystem('utc');
openmct.install(openmct.plugins.Espresso());
openmct.start();
</script>
</body>
</html>

20
1-package.json Executable file
View File

@@ -0,0 +1,20 @@
{
"name": "subo-openmct",
"version": "0.0.1",
"description": "Suborbital's implementation of Open MCT",
"main": "server/server.js",
"scripts": {
"start": "node server/server.js"
},
"repository": {
"type": "git",
"url": "git+https://git.turnsys.com/Suborbital-Systems/OpenMCT.git"
},
"dependencies": {
"express": "^4.16.4",
"express-ws": "^4.0.0",
"openmct": "nasa/openmct",
"ws": "^6.1.2"
}
}

0
server/server.js → 1-server/server.js Normal file → Executable file
View File

0
server/static-server.js → 1-server/static-server.js Normal file → Executable file
View File

15
2-server/server.js Executable file
View File

@@ -0,0 +1,15 @@
var StaticServer = require('./static-server');
var expressWs = require('express-ws');
var app = require('express')();
expressWs(app);
var staticServer = new StaticServer();
app.use('/', staticServer);
var port = process.env.PORT || 8080
app.listen(port, function () {
console.log('Open MCT hosted at http://localhost:' + port);
});

11
2-server/static-server.js Executable file
View File

@@ -0,0 +1,11 @@
var express = require('express');
function StaticServer() {
var router = express.Router();
router.use('/', express.static(__dirname + '/..'));
return router
}
module.exports = StaticServer;

0
README.md Normal file → Executable file
View File

0
index.html Normal file → Executable file
View File

0
package.json Normal file → Executable file
View File