LTIJS postgreSQL plugin.
Table of Contents
Introduction
This package allows LTIJS to work with the postgreSQL database.
Installation
$ npm install ltijs-postgres
Usage
Install PostgreSQL
Instantiate and use plugin
// Require Provider const LTI = Providerconst Database = // Instantiate and configure pluginconst db = database: 'databaseName' // Database name. Ex: lti_database user: 'databaseUser' // Database username. Ex: user pass: 'databasePass' // Database password. Ex: password host: 'databaseHost' // Database host. Ex: localhost // Configure provider and the Databaseconst lti = 'EXAMPLEKEY' plugin: db // You set the plugin option as the instance of the Postgres Database Class appUrl: '/' loginUrl: '/login' logger: true let setup = async { // Deploy and open connection to the database await lti // Register platform let plat = await lti // Set connection callback lti // Set main route ltiapp}
Contributing
If you find a bug or think that something is hard to understand feel free to open an issue or contact me on twitter @cvmcosta, pull requests are also welcome :)
And if you feel like it, you can donate any amount of money through paypal, it helps a lot.