This is your own, private server of http://console.re/ service
Using this repo you can install a private server for JavaScript Remote Console and connect to it using https://github.com/kurdin/console-remote
You can try all Console Remote examples at RunJS.cohttps://runjs.co/s/g7LRa7LU1
Clone this private server repo https://github.com/kurdin/console-remote-server
$ git clone https://github.com/kurdin/console-remote-serverGo to repo folder and install Node packages
$cdconsole-remote-server$npminstallConsole Node server script located in ./console-server folder. You can change .env.development file to modify server options
Start console server on localhost port 8088
$ npm run serverYour full server url will be http://localhost:8088 , this is where you need to connect from console-remote connector
Start console application on http://localhost:8090
$ npm startWith your browser, open http://localhost:8090 and you should see Console Remote Web App
There are couple of ways to connect from your script to Private server. See all methods https://github.com/kurdin/console-remote/blob/main/README.md#installation-and-use
Install console-remote-client package
$npminstallconsole-remote-clientimport or require package console-remote-client into your script only once and use server option to connect to your locally running private server on port 8088
importconsolerefrom'console-remote-client';consolere.connect({server: 'http://localhost:8088',channel: 'my-private-server-channel',// requiredredirectDefaultConsoleToRemote: true,// optional, default: falsedisableDefaultConsoleOutput: true,// optional, default: false});console.log('test log');or with require
constconsolere=require('console-remote-client').connect({server: 'http://localhost:8088',channel: 'my-private-server-channel',// requiredredirectDefaultConsoleToRemote: true,// optional, default: falsedisableDefaultConsoleOutput: true,// optional, default: false});console.log('test log');In your browser, go to url http://localhost:8090/my-private-server-channel and you should see your test log output in the Console App
Copy this repo's files to your production server and install Node packages
npmiChange production options in .env.production file
Run Node app in production env with
NODE_ENV=productionnpmrunserverUse NGINX or any other Reverse Proxy server to forward all requests from your public domain port 443 or 80 to your locally running private console server on port 8088. See example in config/console.nginx.example.conf
npmrunbuildCopy all files in ./build folder to your HTTP server root folder for your private remote console server domain
See examples of HTTP server configuration in config/console.nginx.example.conf and semi auto deployment script in .shipit files
- Any issues or questions (no matter how basic), please open an issue
- Website contact form: http://console.re#contact
Copyright (c) 2012 - 2021 Sergey Kurdin https://github.com/kurdin
Check my JavaScript Playground Web App https://runjs.co
Based on http://jsoverson.github.io/rcl Copyright (c) 2012 by Jarrod Overson
This for Non-Commercial Use ONLY (Personal)
See LICENSE.md
