New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jsharmony

Package Overview
Dependencies
Maintainers
0
Versions
413
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsharmony

Rapid Application Development (RAD) Platform for Node.js Database Application Development

  • 1.36.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
decreased by-87.42%
Maintainers
0
Weekly downloads
 
Created
Source

=========

jsHarmony

=========

Rapid Application Development (RAD) Platform for Node.js Database Application Development

Explore the Quickstart Tutorials and Documentation at http://tutorials.jsharmony.com

Installation

npm install jsharmony --save

Usage

var jsHarmony = require('jsharmony');
var pgsqlDBDriver = require('jsharmony-db-pgsql');
var jsh = new jsHarmony();
jsh.DBConfig['default'] = { host: "server.domain.com", database: "DBNAME", user: "DBUSER", password: "DBPASS", _driver: new pgsqlDBDriver() };
jsh.Run();

See database drivers jsharmony-db-pgsql and jsharmony-db-mssql for connection strings.

The system requires a "data" folder in the same folder as the root application file. An alternative path can be specified in the jsh.Config.appbasepath variable. The "models" folder will be automatically generated in the application base path (jsh.Config.appbasepath).

jsh.Config.server configures the server settings:

jsh.Config.server = {
  'http_port': 3000,
  'https_port': 0,
  'https_cert': 'c:/wk/bk/cert/localhost-cert.pem',
  'https_key': 'c:/wk/bk/cert/localhost-key.pem',
  'https_ca': 'c:/wk/bk/cert/localhost-ca.pem',
};
jsh.Run();

Static authentication can be enabled via:

jsh.Init(function(){
  jsh.Sites['main'].Merge({
    auth: jsHarmony.Auth.Static([
      {user_id: 1, user_name: 'Andrew', user_email: 'andrew@domain.com', password: 'SAMPLE_PASSWORD', _roles: ['SYSADMIN']},
      {user_id: 2, user_name: 'Steve', user_email: 'steve@domain.com', password: 'SAMPLE_PASSWORD', _roles: ['BROWSE']},
    ])
  });
  jsh.Run();
});

Tests

Before running tests, please create the data folder and configure the https certs in test\index.js.

npm test

Release History

  • 1.0.0 Initial Release
  • 1.1.0 Modules

Keywords

FAQs

Package last updated on 12 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc