Proxy attempt
diff --git a/xos/core/xoslib/ui_src/contentProvider/package.json b/xos/core/xoslib/ui_src/contentProvider/package.json
index 5a61466..8f1b8ef 100644
--- a/xos/core/xoslib/ui_src/contentProvider/package.json
+++ b/xos/core/xoslib/ui_src/contentProvider/package.json
@@ -8,7 +8,7 @@
"start": "bower install; npm run wiredep; parallelshell \"npm run babel\" \"npm run browser\"",
"wiredep": "wiredep -s 'src/index.html'",
"babel": "babel 'src/js' -w -d 'src/.tmp'",
- "browser": "browser-sync start --files 'src/.tmp/**/*.js,src/**/*.html,src/**/*.css' --server './src' --reload-delay 1000",
+ "browser": "browser-sync start --files 'src/.tmp/**/*.js,src/**/*.html,src/**/*.css' --server './src' --reload-delay 1000 --port 3000",
"watch": "npm-watch"
},
"author": "Matteo Scandolo",
@@ -16,6 +16,7 @@
"devDependencies": {
"babel": "^5.8.29",
"browser-sync": "^2.9.11",
+ "http-proxy": "^1.12.0",
"npm-watch": "0.0.1",
"parallelshell": "^2.0.0",
"wiredep": "^3.0.0-beta"
diff --git a/xos/core/xoslib/ui_src/contentProvider/proxy.js b/xos/core/xoslib/ui_src/contentProvider/proxy.js
new file mode 100644
index 0000000..8567838
--- /dev/null
+++ b/xos/core/xoslib/ui_src/contentProvider/proxy.js
@@ -0,0 +1,5 @@
+var http = require('http-proxy');
+
+http.createServer(function(req, res) {
+ proxy.web(req, res, { target: 'http://localhost:9000' }).listen(3000);
+});
\ No newline at end of file