Code Monkey home page Code Monkey logo

cadmin-server's Introduction

cAdmin-Server

InterSystems Caché Administration Mobile tool - Server side. Bundled with project https://github.com/ShmidtIvan/cAdmin.

Installation guide

  1. Create new Namespace cAdmin with new database cAdmin with new access resource %DB_cAdmin
  2. Into your new namespace cAdmin mirror package SYS from database CACHESYS
  3. Create new resource %cAdmin with public USE on
  4. Create new role cAdminRole, containing %cAdmin resource (step 3) and %Admin_Manage resource
  5. Import all Cache classes from this repository https://github.com/eduard93/cAdmin-Server/ Either download zip or clone git
  6. In cAdmin.WebSocket class modify resource parameter to match %cAdmin resource
  7. Compile all classes
  8. Create new user cAdminUser with roles %DB_cAdmin (step 1), cAdminRole (step 4) and %Admin_Manage role
  9. For user cAdminUser on tab SQL Tables add access to Select and Delete for table cAdmin_data.CconsoleLog from cAdmin namespace

Use (JavaScript)
ws = new WebSocket("ws://<server ip>:<server port>/csp/<Namespace>/cAdmin.WebSocket.cls");
ws.onopen = function(){ ws.send(JSON.stringify({User:" cAdminUser ",Password:" cAdminUserPassword"}))};

ws.onmessage = function(m){console.log(m)};
ws.send(‘devtools:RandomNumber’);

In this example we, first, create new websocket object and point it to our websocket.
Next, we specify what to send to server after establishing the connection – JSON, containing authorization information.
After this use ws.send to send requests from request map
Use ws.readyState to check that WebSocket is working

Notes
Please refer to included Caché documentation and manual.pdf for further information.

cadmin-server's People

Contributors

eduard93 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.