├── .dockerignore ├── .gitignore ├── Dockerfile ├── checkdeploy.sh ├── docker-cleanup-prebuild ├── docker-compose.yml ├── gulpfile.js ├── hub ├── 1.html ├── 2.html ├── 3.html ├── The_new_header_12 │ └── index.html ├── alexen.html ├── alexhub.html ├── article.html ├── blog.html ├── coming.html ├── coretest.html ├── cover1.html ├── create.html ├── dao.html ├── dima.html ├── heart.html ├── index.html ├── kreosan.html ├── linktest.html ├── multitwitter.html ├── noauthor.html ├── nocomment.html ├── obl.html ├── offer.html ├── ru.html ├── ru2.html ├── stevhub.html ├── team.html ├── terms.html ├── testment.html ├── thermo.html ├── usertest.html ├── vsauce.html └── wrioos.html ├── index.html ├── license ├── nginx ├── Dockerfile ├── conf │ └── conf.d │ │ └── default.conf ├── ssl │ ├── README │ ├── certs │ │ └── myssl.crt │ └── private │ │ └── myssl.key └── static │ └── core │ ├── core.html │ └── index.html ├── readme.md └── webrunes-integration-test └── test.js /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .git* 3 | */.git/* 4 | */node_modules* 5 | /*.md 6 | */.idea/ -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /keys 2 | /Core-WRIO-App 3 | /Login-WRIO-App 4 | /Storage-WRIO-App 5 | /webGold-WRIO-App 6 | /Chess-WRIO-Game 7 | /Plus-WRIO-App 8 | /Default-WRIO-Theme 9 | /WRIO-InternetOS 10 | /Pinger-WRIO-App 11 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mhart/alpine-node:6 2 | MAINTAINER denso.ffff@gmail.com 3 | 4 | RUN apk add --no-cache make gcc g++ python 5 | RUN npm install -g yarn@0.17 gulp webpack-dev-server webpack 6 | RUN mkdir -p /srv/www 7 | 8 | copy WRIO-InternetOS/package.json WRIO-InternetOS/yarn.lock /srv/ 9 | RUN cd /srv/ && yarn 10 | 11 | EXPOSE 3000 12 | RUN cd /srv/www && pwd && ls 13 | WORKDIR /srv/www/WRIO-InternetOS 14 | CMD export DOCKER_DEV=TRUE && webpack-dev-server --public wrioos.local 15 | -------------------------------------------------------------------------------- /checkdeploy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | curl https://wrioos.com/main.js > /tmp/main.js 4 | curl https://wrioos.com/start.js > /tmp/start.js 5 | 6 | 7 | curl --insecure https://wrioos.com.s3.amazonaws.com/start.js | gunzip > /tmp/start.s3.js 8 | curl --insecure https://wrioos.com.s3.amazonaws.com/main.js | gunzip > /tmp/main.s3.js 9 | 10 | cd /tmp 11 | diff -q main.js main.s3.js 12 | diff -q start.js start.s3.js 13 | 14 | echo "\nVersions on s3" 15 | cat main.s3.js | grep "WRIO-InternetOS build" 16 | cat start.s3.js | grep "WRIO-InternetOS build" 17 | 18 | echo "\nVersions on wrioos.com" 19 | cat main.js | grep "WRIO-InternetOS build" 20 | cat start.js | grep "WRIO-InternetOS build" 21 | -------------------------------------------------------------------------------- /docker-cleanup-prebuild: -------------------------------------------------------------------------------- 1 | rm -fR node_modules 2 | cd Chess-WRIO-Game && rm -fR node_modules 3 | cd .. 4 | cd Core-WRIO-App && rm -fR node_modules 5 | cd .. 6 | cd Login-WRIO-App && rm -fR node_modules 7 | cd .. 8 | cd Storage-WRIO-App && rm -fR node_modules 9 | cd .. 10 | cd Pinger-WRIO-App && rm -fR node_modules 11 | cd .. 12 | cd WRIO-InternetOS && rm -fR node_modules 13 | cd .. 14 | cd webGold-WRIO-App && rm -fR node_modules 15 | cd .. 16 | cd Plus-WRIO-App && rm -fR node_modules 17 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | nginx: 2 | build: ./nginx/ 3 | ports: 4 | - "80:80" 5 | - "443:443" 6 | links: 7 | - pinger 8 | - login 9 | - storage 10 | - webgold 11 | 12 | mongo: 13 | image: mongo:latest 14 | ports: 15 | - "27017:27017" 16 | 17 | 18 | login: 19 | build: ./Login-WRIO-App/ 20 | ports: 21 | - "5000:5000" 22 | volumes: 23 | - ./Login-WRIO-App/:/srv/www/ 24 | extra_hosts: 25 | - "pinger.wrioos.local:10.211.55.3" 26 | - "storage.wrioos.local:10.211.55.3" 27 | - "webgold.wrioos.local:10.211.55.3" 28 | 29 | 30 | pinger: 31 | build: ./Pinger-WRIO-App/ 32 | ports: 33 | - "5001:5001" 34 | volumes: 35 | - ./Pinger-WRIO-App/:/srv/www/ 36 | links: 37 | - rabbitmq 38 | extra_hosts: 39 | - "pinger.wrioos.local:10.211.55.3" 40 | - "login.wrioos.local:10.211.55.3" 41 | - "webgold.wrioos.local:10.211.55.3" 42 | 43 | storage: 44 | build: ./Storage-WRIO-App/ 45 | ports: 46 | - "5002:5002" 47 | volumes: 48 | - ./Storage-WRIO-App/:/srv/www/ 49 | - ./hub/:/hub 50 | extra_hosts: 51 | - "pinger.wrioos.local:10.211.55.3" 52 | - "login.wrioos.local:10.211.55.3" 53 | #command: sh -c "cd /srv/www && node server.js" # DEVMODE off, comment this to activate dev mode 54 | 55 | webgold: 56 | build: ./webGold-WRIO-App/ 57 | links: 58 | - mongo 59 | - rabbitmq 60 | ports: 61 | - "5003:5003" 62 | volumes: 63 | - ./webGold-WRIO-App/:/srv/www/ 64 | command: sh -c "cd /srv/www && node server.js" # DEVMODE off,comment this to activate dev mode 65 | 66 | #chess: 67 | # build: ./Chess-WRIO-Game/ 68 | # ports: 69 | # - "5005:5005" 70 | # volumes: 71 | # - ./Chess-WRIO-Game/:/srv/www/ 72 | # links: 73 | # - pinger 74 | 75 | rabbitmq: 76 | image: "rabbitmq" 77 | ports: 78 | - "15672:15672" 79 | - "5672:5672" 80 | 81 | #testrpc: 82 | # image: harshjv/testrpc 83 | # ports: 84 | # - "8545:8545" 85 | # command: --debug --blocktime 1 --secure --unlock 0x64b1ca6c22567bdbae74cab3a694d48c7a6b4789 --account="0x4749870d2632ff65dccdd61073e69a2e9f32c757e10efbf584cfe93c1d139f1c,1000000000" --account="0x51389cd120c059bbfd003e325550eace06c1515cbc6c8c7f8735728a54edfdc4,0" --account="0x1fb9710adb5b43df3f378e4007fdbdadd54f76dc162a1b59d368c7d66b926685,0" 86 | -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- 1 | var gulp = require('gulp'); 2 | var webserver = require('gulp-webserver'); 3 | var spawn = require('child_process').spawn; 4 | 5 | gulp.task('webserver', function() { 6 | if (process.platform === 'win32') { 7 | sh = 'cmd'; 8 | shFlag = '/c'; 9 | } else { 10 | sh = 'sh'; 11 | shFlag = '-c'; 12 | } 13 | cmd = "cd WRIO-InternetOS && gulp watchDev --dev"; 14 | var child = spawn(sh,[shFlag,cmd], { 15 | cwd: process.cwd, 16 | env: process.env, 17 | stdio: ['pipe', process.stdout, process.stderr] 18 | }); 19 | 20 | 21 | gulp.src('.') 22 | .pipe(webserver({ 23 | livereload: true, 24 | open: true, 25 | port: 3000 26 | })); 27 | }); 28 | gulp.task('default',['webserver']); -------------------------------------------------------------------------------- /hub/1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | webRunes 10 | 11 | 27 | 28 | 82 | 83 | 106 | 107 | 108 | 109 | 111 | 112 | -------------------------------------------------------------------------------- /hub/2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 3 14 | 15 | 31 | 32 | 128 | 129 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | -------------------------------------------------------------------------------- /hub/3.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 3 14 | 15 | 31 | 32 | 128 | 129 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | -------------------------------------------------------------------------------- /hub/The_new_header_12/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | The new header111 9 | 26 | 27 | 28 | 30 | 31 | -------------------------------------------------------------------------------- /hub/alexen.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Alexey Anshakov 10 | 26 | 120 | 140 | 150 | 151 | 152 | 153 | 155 | 156 | -------------------------------------------------------------------------------- /hub/alexhub.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Алексей Аншаков 12 | 28 | 29 | 116 | 136 | 137 | 138 | 139 | 140 | 141 | -------------------------------------------------------------------------------- /hub/article.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | webRunes 12 | 13 | 29 | 30 | 85 | 86 | 109 | 110 | 111 | 112 | 113 | 114 | -------------------------------------------------------------------------------- /hub/blog.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Blog 13 | 29 | 62 | 78 | 79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /hub/coming.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Coming. 8 | 118 | 119 | 120 | 122 | 123 | -------------------------------------------------------------------------------- /hub/coretest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Untitled 9 | 32 | 33 | 34 | 36 | 37 | -------------------------------------------------------------------------------- /hub/cover1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Covers for my blog 12 | 53 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /hub/create.html: -------------------------------------------------------------------------------- 1 | heya! -------------------------------------------------------------------------------- /hub/dao.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | ДАО 13 | 14 | 61 | 62 | 72 | 73 | 74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /hub/dima.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Дмитрий Побединский 10 | 26 | 42 | 79 | 102 | 112 | 113 | 114 | 116 | 117 | -------------------------------------------------------------------------------- /hub/heart.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Untitled 9 | 37 | 38 | 39 | 41 | 42 | -------------------------------------------------------------------------------- /hub/index.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | webRunes 12 | 28 | 379 | 395 | 410 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | -------------------------------------------------------------------------------- /hub/kreosan.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | KREOSAN 10 | 26 | 42 | 117 | 127 | 128 | 129 | 131 | 132 | -------------------------------------------------------------------------------- /hub/multitwitter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Science - 7Best 11 | 113 | 121 | 122 | 123 | 125 | 126 | -------------------------------------------------------------------------------- /hub/noauthor.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | The story of the cat 11 | 12 | 81 | 82 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /hub/nocomment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | The story of the cat 11 | 12 | 81 | 82 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /hub/obl.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Обложка 12 | 143 | 144 | 145 | 146 | 147 | 148 | -------------------------------------------------------------------------------- /hub/offer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Core 12 | 28 | 80 | 90 | 91 | 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /hub/ru2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | webRunes 12 | 28 | 362 | 385 | 395 | 396 | 397 | 398 | 399 | 400 | -------------------------------------------------------------------------------- /hub/stevhub.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Michael Stevens 9 | 23 | 58 | 76 | 77 | 78 | 80 | 81 | -------------------------------------------------------------------------------- /hub/team.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | webRunes team 12 | 13 | 53 | 63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /hub/testment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | ДАО 13 | 14 | 153 | 154 | 164 | 165 | 166 | 167 | 168 | 169 | -------------------------------------------------------------------------------- /hub/thermo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Термоядерный реактор 10 | 37 | 47 | 48 | 49 | 51 | 52 | -------------------------------------------------------------------------------- /hub/usertest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | webRunes 13 | 36 | 149 | 165 | 166 | 167 | 168 | 169 | 170 | -------------------------------------------------------------------------------- /hub/vsauce.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Vsauce 11 | 12 | 13 | 14 | 15 | 31 | 105 | 135 | 145 | 146 | 147 | 149 | 150 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | webRunes 12 | 35 | 154 | 164 | 165 | 166 | 167 | 168 | 169 | -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webRunes/WRIO-local-dev/2c18788764442fb1ba27b9ddd10115cc49c74b52/license -------------------------------------------------------------------------------- /nginx/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx 2 | 3 | RUN rm /etc/nginx/conf.d/default.conf 4 | 5 | 6 | #COPY content /usr/share/nginx/html 7 | 8 | COPY conf /etc/nginx 9 | COPY static /static 10 | COPY ssl /etc/ssl 11 | -------------------------------------------------------------------------------- /nginx/conf/conf.d/default.conf: -------------------------------------------------------------------------------- 1 | # wrioos.local 2 | server { 3 | listen 80; 4 | server_name wrioos.local; 5 | 6 | location / { 7 | proxy_pass http://dev:3000/; 8 | proxy_set_header X-Real-IP $remote_addr; 9 | proxy_set_header Host $http_host; 10 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 11 | add_header Access-Control-Allow-Origin *; 12 | } 13 | 14 | } 15 | 16 | server { 17 | listen 443; 18 | ssl on; 19 | ssl_certificate /etc/ssl/certs/myssl.crt; 20 | ssl_certificate_key /etc/ssl/private/myssl.key; 21 | keepalive_timeout 70; 22 | server_name wrioos.local; 23 | location / { 24 | proxy_pass http://dev:3000/; 25 | } 26 | } 27 | 28 | # login.wrioos.local 29 | 30 | server { 31 | listen 80; 32 | server_name login.wrioos.local; 33 | 34 | location / { 35 | proxy_pass http://login:5000/; 36 | proxy_set_header X-Real-IP $remote_addr; 37 | proxy_set_header Host $http_host; 38 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 39 | } 40 | } 41 | 42 | server { 43 | listen 443; 44 | ssl on; 45 | ssl_certificate /etc/ssl/certs/myssl.crt; 46 | ssl_certificate_key /etc/ssl/private/myssl.key; 47 | keepalive_timeout 70; 48 | server_name login.wrioos.local; 49 | location / { 50 | proxy_pass http://login:5000/; 51 | proxy_set_header X-Real-IP $remote_addr; 52 | proxy_set_header Host $http_host; 53 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 54 | } 55 | } 56 | 57 | # pinger.wrioos.local 58 | 59 | server { 60 | listen 80; 61 | server_name pinger.wrioos.local; 62 | 63 | location / { 64 | proxy_pass http://pinger:5001/; 65 | proxy_set_header X-Real-IP $remote_addr; 66 | proxy_set_header Host $http_host; 67 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 68 | } 69 | } 70 | 71 | server { 72 | listen 443; 73 | ssl on; 74 | ssl_certificate /etc/ssl/certs/myssl.crt; 75 | ssl_certificate_key /etc/ssl/private/myssl.key; 76 | keepalive_timeout 70; 77 | server_name pinger.wrioos.local; 78 | location / { 79 | proxy_pass http://pinger:5001/; 80 | proxy_set_header X-Real-IP $remote_addr; 81 | proxy_set_header Host $http_host; 82 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 83 | } 84 | } 85 | 86 | 87 | # core.wrioos.local 88 | 89 | server { 90 | listen 80; 91 | server_name core.wrioos.local; 92 | 93 | root /static/core/; 94 | location / { 95 | } 96 | location /create { 97 | rewrite ^/create$ /core.html; 98 | } 99 | location /edit { 100 | rewrite ^/edit$ /core.html; 101 | } 102 | 103 | } 104 | 105 | server { 106 | listen 443; 107 | ssl on; 108 | ssl_certificate /etc/ssl/certs/myssl.crt; 109 | ssl_certificate_key /etc/ssl/private/myssl.key; 110 | keepalive_timeout 70; 111 | server_name core.wrioos.local; 112 | 113 | root /static/core/; 114 | location / { 115 | } 116 | location /create { 117 | rewrite ^/create$ /core.html; 118 | } 119 | location /edit { 120 | rewrite ^/edit$ /core.html; 121 | } 122 | 123 | } 124 | 125 | 126 | # webgold.wrioos.local 127 | 128 | server { 129 | listen 80; 130 | server_name webgold.wrioos.local; 131 | 132 | location / { 133 | proxy_pass http://webgold:5003/; 134 | proxy_set_header X-Real-IP $remote_addr; 135 | proxy_set_header Host $http_host; 136 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 137 | } 138 | } 139 | 140 | server { 141 | listen 443; 142 | ssl on; 143 | ssl_certificate /etc/ssl/certs/myssl.crt; 144 | ssl_certificate_key /etc/ssl/private/myssl.key; 145 | keepalive_timeout 70; 146 | server_name webgold.wrioos.local; 147 | location / { 148 | proxy_pass http://webgold:5003/; 149 | proxy_set_header X-Real-IP $remote_addr; 150 | proxy_set_header Host $http_host; 151 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 152 | } 153 | } 154 | 155 | 156 | # storage.wrioos.local 157 | 158 | server { 159 | listen 80; 160 | server_name storage.wrioos.local; 161 | 162 | location / { 163 | proxy_pass http://storage:5002/; 164 | proxy_set_header X-Real-IP $remote_addr; 165 | proxy_set_header Host $http_host; 166 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 167 | } 168 | 169 | 170 | } 171 | server { 172 | listen 443; 173 | ssl on; 174 | ssl_certificate /etc/ssl/certs/myssl.crt; 175 | ssl_certificate_key /etc/ssl/private/myssl.key; 176 | keepalive_timeout 70; 177 | server_name storage.wrioos.local; 178 | location / { 179 | proxy_pass http://storage:5002/; 180 | proxy_set_header X-Real-IP $remote_addr; 181 | proxy_set_header Host $http_host; 182 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 183 | } 184 | } 185 | 186 | -------------------------------------------------------------------------------- /nginx/ssl/README: -------------------------------------------------------------------------------- 1 | sample self-signed ssl certificates for local development 2 | -------------------------------------------------------------------------------- /nginx/ssl/certs/myssl.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIICnzCCAggCCQD3zx4dAbEtrTANBgkqhkiG9w0BAQUFADCBkzELMAkGA1UEBhMC 3 | VUExEzARBgNVBAgTClNvbWUtU3RhdGUxDTALBgNVBAcTBEtpZXYxETAPBgNVBAoT 4 | CHdlYlJ1bmVzMRUwEwYDVQQLEwx3ZWJSdW5lcyBkZXYxETAPBgNVBAMTCHdlYlJ1 5 | bmVzMSMwIQYJKoZIhvcNAQkBFhRkZW5zby5mZmZmQGdtYWlsLmNvbTAeFw0xNzAz 6 | MjkwOTU5MjhaFw0xODAzMjkwOTU5MjhaMIGTMQswCQYDVQQGEwJVQTETMBEGA1UE 7 | CBMKU29tZS1TdGF0ZTENMAsGA1UEBxMES2lldjERMA8GA1UEChMId2ViUnVuZXMx 8 | FTATBgNVBAsTDHdlYlJ1bmVzIGRldjERMA8GA1UEAxMId2ViUnVuZXMxIzAhBgkq 9 | hkiG9w0BCQEWFGRlbnNvLmZmZmZAZ21haWwuY29tMIGfMA0GCSqGSIb3DQEBAQUA 10 | A4GNADCBiQKBgQDXr3kxTxCNLeWJS4JOvNwshfLfJqCuDTgzRJ2pyg/Sx5HNkp4B 11 | IPtcL7F7R+9j8WJY9lU+nebyCwOoAo7aJxtldL4fE/XAypxesu1lQHnDL9MNNSow 12 | mZorymf+Jq9zMTGPb48fbZ0Glka07qvAf6mEdd9KSTaEem4pghVLZheN0QIDAQAB 13 | MA0GCSqGSIb3DQEBBQUAA4GBAK7pRTP0UngzTe2i0Umc/FdNpVuWjumrHcAW/teJ 14 | QfWJnQGa/LeJl97tNGhcBrEnNAnMeYV/58V8znMk6YTgpbpTzRCIYTmcE+4cYgyS 15 | s+a9EWKFbcNh5Mat6aKgsNtX/MHelsbAJe5Sf8S1FOkp8f3W0X7GFpIQur8jQDgg 16 | BaP3 17 | -----END CERTIFICATE----- 18 | -------------------------------------------------------------------------------- /nginx/ssl/private/myssl.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIICXAIBAAKBgQDXr3kxTxCNLeWJS4JOvNwshfLfJqCuDTgzRJ2pyg/Sx5HNkp4B 3 | IPtcL7F7R+9j8WJY9lU+nebyCwOoAo7aJxtldL4fE/XAypxesu1lQHnDL9MNNSow 4 | mZorymf+Jq9zMTGPb48fbZ0Glka07qvAf6mEdd9KSTaEem4pghVLZheN0QIDAQAB 5 | AoGASaMgJmSPCxRbZKeCAq3aId1NkUBX5XSf9mj7xyc0hcsbDWt8RHhlORETcDqc 6 | Eaws3qCjc/BnE8YM5oSRDwwA/t6xZ8sy9RjJnzNBySZA3YCU7IKhgs2Sb34rWi1a 7 | bXvKnpo2TK8KOQr/JCw44mxNb3GGssqzIB9fidrsp8LcYZECQQD7IJKwT3x2PRAO 8 | aABPlxYzQi+MlHQye5ogGsbLjhef3XuYRNmDAPEQIWUo1GyIJvXekhVChpzjJ559 9 | sBESTEhNAkEA297ZmZY5B0ikXNF/WN07gZnVtj7hOFgv1bkpTEXEEgT6oE3d7BYy 10 | UcD1Kih8SLMJb+hNZEFfNFWwUnQvbePdlQJAQqmZ5u2it2xsN7bJ5lbQENlP7/x0 11 | f/Ypqr4Q6XYVtV1A8uHL76evVj3XMah6CwZ0nBmhRSCgwvgAbZLwZTAUvQJAfeZK 12 | paaeeyw+aaPQjvsHcvu6o0O4RUJCCdif7DvavRK6zIYp+GDxaVzbRcuu9xYF5l2X 13 | yzufn2EduOksq3kaTQJBALqMJTEkYNKOVtG1udNO/E1K1AOWkwhpRB5Q/g2jY95e 14 | VTJssRM+BfXs3yGbew7Lvv88bcaDGvUaaKuVHIJTIcQ= 15 | -----END RSA PRIVATE KEY----- 16 | -------------------------------------------------------------------------------- /nginx/static/core/core.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Core · WYSIWYG editor 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /nginx/static/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Core's hub stub here. Please use /create or /edit 9 | 10 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | #WRIO local development package 2 | 3 | Please refer wiki for local development instructions 4 | [Local development of WRIO-InternetOS front end](https://github.com/webRunes/WRIO-InternetOS/wiki/Deploy-on-localhost) 5 | 6 | # Clone your repositories there 7 | 8 | Note for Windows users: [Python](https://www.python.org/downloads/release/python-2713/) must be installed. Please make sure, python is included in system path. 9 | Note: Fork and replace "webRunes" in the URLs below with your github name (NOTE: make sure to clone all repositories in WRIO-local-dev folder) 10 | 11 | If you're going to work on front-end only this will be enough 12 | ``` 13 | git clone https://github.com/webRunes/WRIO-local-dev 14 | cd WRIO-local-dev 15 | 16 | git clone https://github.com/webRunes/WRIO-InternetOS 17 | git clone https://github.com/webRunes/Default-WRIO-Theme 18 | ``` 19 | 20 | If you're going to work on back-end too, clone backend repos as well 21 | 22 | ``` 23 | git clone https://github.com/webRunes/Core-WRIO-App 24 | git clone https://github.com/webRunes/Login-WRIO-App 25 | git clone https://github.com/webRunes/Storage-WRIO-App 26 | git clone https://github.com/webRunes/webGold-WRIO-App 27 | git clone https://github.com/webRunes/Chess-WRIO-Game 28 | git clone https://github.com/webRunes/Plus-WRIO-App 29 | git clone https://github.com/webRunes/Pinger-WRIO-App 30 | ``` 31 | 32 | install yarn, if you don't have one 33 | 34 | ``` 35 | npm install -g yarn 36 | cd WRIO-InternetOS 37 | yarn 38 | npm run devserver 39 | ``` 40 | Please add following entries to your hosts file 41 | ``` 42 | 127.0.0.1 webgold_d.wrioos.com 43 | 127.0.0.1 core_d.wrioos.com 44 | 127.0.0.1 pinger_d.wrioos.com 45 | ``` 46 | 47 | Now each time you start frontend server, run 48 | ``` 49 | cd WRIO-InternetOS 50 | npm run devserver 51 | ``` 52 | 53 | 54 | Start 55 | ``` 56 | http://localhost:3033/ 57 | ``` 58 | 59 | Port 80 must be available. In case it's not you may need to stop "Web Deployment Agent Service" at "View local services": 60 | [http://www.ferolen.com/blog/microsoft-httpapi2-0-use-port-80-cannot-start-wamp-apache/](http://www.ferolen.com/blog/microsoft-httpapi2-0-use-port-80-cannot-start-wamp-apache/) 61 | -------------------------------------------------------------------------------- /webrunes-integration-test/test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by michbil on 19.02.16. 3 | */ 4 | 5 | var page = require('webpage'); 6 | 7 | 8 | var domain = 'wrioos.com'; 9 | //domain = 'wrioos.local'; 10 | console.log("Started"); 11 | 12 | function OpenPage (page,url,cb) { 13 | console.log("Once again"); 14 | page.open(url, function(status) { 15 | console.log("Status: " + status); 16 | setTimeout(cb,2000); 17 | }); 18 | } 19 | 20 | setInterval(function () { 21 | var p = page.create(); 22 | OpenPage(p,'http://'+domain,function () { 23 | OpenPage(p,'http://webgold.'+domain+'/add_funds',p.close) 24 | }); 25 | },20); 26 | 27 | --------------------------------------------------------------------------------