Read Me
INSTALLATION
NewRadial depends on 3 things:
* A web server
* NodeJS
* A Postgresql database
Install and configure those first.
Clone the NewRadial repo into a web-visible directory (this depends on your
operating system and your server software of choice).
NewRadial contains a script at backend/db_scripts/ddl.script that you can use
to construct the initial tables and sequences in the database required for
NewRadial.
NewRadial also contains scripts at
backend/start-node-server.sh, backend/stop-node-server.sh, and
backend/restart-node-server.sh that start, stop, and restart (stop and start)
the NodeJS server instance running NewRadial. Check these scripts to make sure
paths and environment variables are correct for your set-up.
EDITING
Any time a JavaScript file is changed in the backend/ directory, the NodeJS
server must be restarted for the changes to take effect. This is not required
for changes in frontend/, where a simple browser refresh will load the changes.
Using commands in the Logger module (debug, log, err) outputs messages from
backend scripts to the file backend/logs/today.log . The file
backend/logs/midnightly-log-rotation.sh can be added to a cron job (either via
the system's cron utility or the NodeJS cron module) to keep log files
manageable. Again, check the paths in this script.
For the frontend scripts, use the browser built-in console.log(),
console.debug(), and console.dir() commands to send debugging information to
the browser's JavaScript console.
Most settings relating to the graphical UI are configured in
frontend/src/ClientConfig.js . Most settings relating to backend HTTP requests
are configured in backend/Config.js (again, changes to this file require a
NodeJS server restart).
ADAPTERS
As each external database has its own API and quirks, writing a new adapter is
often a process of trial and error. Use existing adapters as models.
In order for an adapter to show up in the Search Panel, the filename of the
adapter must be included in the array backend/adapters/AdapterList.js and the
NodeJS server must be restarted. Unwanted adapters can be removed from this list.