0.0.9 • Published 8 years ago

soonglabs-boss v0.0.9

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Soong Research Labs

BOSS - the browser operating system simulator

Build Status npm version

The Browser Operating System Simulator. http://www.boss.computer

Getting Started

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>

Installation

Clone the repo

git clone git+https://github.com/soonglabs/boss.git

Install dependencies

npm install gulp -g
npm install

Run Local server

Build and run local dev server on port 8080

npm start

Run Tests

npm test
0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago