The Browser Operating System Simulator. http://www.boss.computer
Want to use boss in your project? The following steps should help get you started. See the example directory in this repo.
npm install soonglabs-boss
Because boss executes js dynamically, it is recomended to always run boss in an sandboxed iframe.
index.html
<iframe sandbox="allow-scripts allow-modals allow-popups" src="./boss.html"></iframe>
In your boss.html include the boss.js, and boss.css files. A default image (image.js) is also included. Make sure you include any other js/css files that your image requires. See example/boss.html to see what the default image requires.
boss.html
<html>
<head>
<script src="node_modules/dist/js/boss.js"></script>
<script src="node_modules/dist/image.js"></script>
<link href="node_modules/dist/css/boss.css" rel="stylesheet"/>
<script>
'use strict';
($(document).ready(function() {
var newBoss = new Boss(boss_image, 'BOSS-dev', 'prod');
newBoss.cmd.shell('', null);
}));
</script>
<title>BOSS</title>
</head>
<body id="boss"></body>
</html>
Clone the repo
git clone git+https://github.com/soonglabs/boss.git
Install dependencies
npm install gulp -g
npm install
Build and run local dev server on port 8080
npm start
npm test