Client Files into its own folder

This commit is contained in:
Luis Fernando Molina committed 2021-09-05 11:46:18 +02:00
1 parent 17656a12c0
commit 781f6b8fa1
84 files changed
+39 -40

No files matched your search

+2 -2
View File
@@ -10,10 +10,10 @@ exports.newEnvironment = function () {
PATH_TO_LOG_FILES: './Log-Files',
PATH_TO_PROJECTS_REQUIRED: './Projects',
PATH_TO_PROJECT_SCHEMA: '../Projects/ProjectsSchema.json',
PATH_TO_CLIENT: './Client',
PATH_TO_CLIENT: './Platform',
PATH_TO_DEFAULT_WORKSPACE: './Projects/Foundations/Plugins/Workspaces',
PATH_TO_MY_WORKSPACES: './My-Workspaces',
PATH_TO_FONTS: './Client/WebServer/Fonts'
PATH_TO_FONTS: './Platform/WebServer/Fonts'
}
return thisObject
+2 -2
View File
@@ -12,11 +12,11 @@ exports.newEnvironment = function () {
PATH_TO_LOG_FILES: './Log-Files',
PATH_TO_PROJECTS_REQUIRED: './Projects',
PATH_TO_PROJECT_SCHEMA: './Projects/ProjectsSchema.json',
PATH_TO_CLIENT: './Client',
PATH_TO_CLIENT: './Platform',
PATH_TO_DESKTOP: './Desktop',
PATH_TO_DEFAULT_WORKSPACE: './Projects/Foundations/Plugins/Workspaces',
PATH_TO_MY_WORKSPACES: './My-Workspaces',
PATH_TO_FONTS: './Client/WebServer/Fonts'
PATH_TO_FONTS: './Platform/WebServer/Fonts'
}
return thisObject
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+20 -20
View File
@@ -6,24 +6,24 @@ global.env = ENVIRONMENT_MODULE
process.on('uncaughtException', function (err) {
if (err.message && err.message.indexOf("EADDRINUSE") > 0) {
console.log("A Superalgos Client cannot be started. Reason: the port configured migth be being used by another application, or Superalgos might be already running.")
console.log("The Superalgos Platform Client cannot be started. Reason: the port configured migth be being used by another application, or Superalgos Platform Client might be already running.")
return
}
console.log('[ERROR] Client -> client-> uncaughtException -> err.message = ' + err.message)
console.log('[ERROR] Client -> client-> uncaughtException -> err.stack = ' + err.stack)
console.log('[ERROR] Client -> client-> uncaughtException -> err = ' + err)
console.log('[ERROR] Platform App -> uncaughtException -> err.message = ' + err.message)
console.log('[ERROR] Platform App -> uncaughtException -> err.stack = ' + err.stack)
console.log('[ERROR] Platform App -> uncaughtException -> err = ' + err)
process.exit(1)
})
process.on('unhandledRejection', (reason, p) => {
// Signal user that a necissary node module is missing
if (reason.code == 'MODULE_NOT_FOUND') {
console.log("[ERROR] Dependency library not found. Please try running the 'node setup' command and then restart the Client.")
console.log('[ERROR] Client -> client-> reason = ' + JSON.stringify(reason))
console.log("[ERROR] Dependency library not found. Please try running the 'node setup' command and then restart the Superalgos Platform Client.")
console.log('[ERROR] Platform App -> reason = ' + JSON.stringify(reason))
process.exit(1)
}
console.log('[ERROR] Client -> client-> unhandledRejection -> reason = ' + JSON.stringify(reason))
console.log('[ERROR] Client -> client-> unhandledRejection -> p = ' + JSON.stringify(p))
console.log('[ERROR] Platform App -> unhandledRejection -> reason = ' + JSON.stringify(reason))
console.log('[ERROR] Platform App -> unhandledRejection -> p = ' + JSON.stringify(p))
process.exit(1)
})
@@ -55,20 +55,20 @@ global.CUSTOM_FAIL_RESPONSE = {
}
/* Servers */
let WEB_SERVER = require('./webServer.js')
let DATA_FILE_SERVER = require('./dataFileServer.js')
let PROJECT_FILE_SERVER = require('./projectFileServer.js')
let UI_FILE_SERVER = require('./uiFileServer.js')
let PLUGIN_SERVER = require('./pluginServer.js')
let EVENT_SERVER = require('./eventServer.js')
let TASK_MANAGER_SERVER = require('./taskManagerServer.js')
let CCXT_SERVER = require('./ccxtServer.js')
let WEB3_SERVER = require('./web3Server.js')
let GITHUB_SERVER = require('./githubServer.js')
let WEB_SERVER = require('./Client/webServer.js')
let DATA_FILE_SERVER = require('./Client/dataFileServer.js')
let PROJECT_FILE_SERVER = require('./Client/projectFileServer.js')
let UI_FILE_SERVER = require('./Client/uiFileServer.js')
let PLUGIN_SERVER = require('./Client/pluginServer.js')
let EVENT_SERVER = require('./Client/eventServer.js')
let TASK_MANAGER_SERVER = require('./Client/taskManagerServer.js')
let CCXT_SERVER = require('./Client/ccxtServer.js')
let WEB3_SERVER = require('./Client/web3Server.js')
let GITHUB_SERVER = require('./Client/githubServer.js')
/* Network Interfaces */
let WEB_SOCKETS_INTERFACE = require('./webSocketsInterface.js')
let HTTP_INTERFACE = require('./httpInterface.js')
let WEB_SOCKETS_INTERFACE = require('./Client/webSocketsInterface.js')
let HTTP_INTERFACE = require('./Client/httpInterface.js')
try {
/*
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -182,6 +182,7 @@ exports.newFoundationsUtilitiesHttpResponses = function () {
let fs = SA.nodeModules.fs
let fileName = pathToApp + '/WebServer/index.html'
console.log(fileName)
fs.readFile(fileName, onFileRead)
function onFileRead(err, file) {
+14 -16
View File
@@ -11,25 +11,23 @@ if (
console.log('Superalgos')
console.log('')
console.log('VERSION: Beta 11')
console.log('VERSION: Beta 11')
console.log('')
console.log('WEB: https://www.superalgos.org')
console.log('WEB: https://www.superalgos.org')
console.log('')
console.log('GITHUB: https://www.github.com/Superalgos')
console.log('GITHUB: https://www.github.com/Superalgos')
console.log('')
console.log('DOCUMENTATION: https://docs.superalgos.org/')
console.log('TELEGRAM COMMUNITY: https://t.me/superalgoscommunity')
console.log('')
console.log('TELEGRAM SUPPORT: https://t.me/superalgoscommunity')
console.log('')
console.log('USAGE: node run [help] [noBrowser] [minMemo]')
console.log('USAGE: node runPlatform [help] [noBrowser] [minMemo]')
console.log('')
console.log('OPTIONS:')
console.log('')
console.log(' help: Optional. Use it to see this helping information.')
console.log(' noBrowser: Optional. Use it to launch Superalgos Client only. The UI will not be loaded.')
console.log(' minMemo: Optional. Use it when your hardware has less than 8 Gb or memory.')
console.log(' help: Optional. Use it to see this helping information.')
console.log(' noBrowser: Optional. Use it to launch Superalgos Platform Client only. The Superalgos Platform UI will not be loaded.')
console.log(' minMemo: Optional. Use it when your hardware has less than 8 Gb or memory.')
console.log('')
console.log('If you are having an error while trying to run this Client, consider this:')
console.log('If you are having an error while trying to run the Superalgos Platform Client, consider this:')
fatalErrorHelp()
return
@@ -81,15 +79,15 @@ console.log('')
console.log('')
const fs = require('fs')
const path = './Client/node_modules'
const path = './Platform/node_modules'
if ( fs.existsSync(path) ) {
try {
const { fork } = require('child_process')
fork('./Client/client.js', process.argv, options)
fork('./Platform/PlatformApp.js', process.argv, options)
} catch (err) {
console.log('')
console.log('Fail to create Client Process.')
console.log('Fail to create Superalgos Platform Client Process.')
console.log('')
fatalErrorHelp()
@@ -106,7 +104,7 @@ function fatalErrorHelp() {
console.log('* If your device does not have MORE than 8GB of RAM then please use the minMemo option.')
console.log('* If your OS does not have a user interface, please use the noBrowser option.')
console.log('')
console.log('If you continue having trouble to start the Client try:')
console.log('If you continue having trouble to start the Superalgos Platform Client try:')
console.log('')
console.log('node run minMemo noBrowser')
console.log('node runPlatform minMemo noBrowser')
}