https://github.com/vincentmorneau/apex-publish-static-files
Publish a local directory to Oracle APEX
https://github.com/vincentmorneau/apex-publish-static-files
apex css front-end javascript oracle orclapex
Last synced: 5 months ago
JSON representation
Publish a local directory to Oracle APEX
- Host: GitHub
- URL: https://github.com/vincentmorneau/apex-publish-static-files
- Owner: vincentmorneau
- License: mit
- Created: 2017-02-17T21:31:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T03:55:54.000Z (over 3 years ago)
- Last Synced: 2026-01-07T10:51:26.268Z (7 months ago)
- Topics: apex, css, front-end, javascript, oracle, orclapex
- Language: JavaScript
- Homepage:
- Size: 730 KB
- Stars: 32
- Watchers: 6
- Forks: 10
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license
Awesome Lists containing this project
README
# APEX Publish Static Files
[]() [](https://travis-ci.org/vincentmorneau/apex-publish-static-files) [](https://david-dm.org/vincentmorneau/apex-publish-static-files) [](https://github.com/sindresorhus/xo)
Uploads all files from a local directory or a single file to Oracle APEX. Destination can be:
- Application Static Files
- Workspace Static Files
- Theme Files
- Plugin Files
## Requirements
* [Node.js](https://nodejs.org/en/)
* [Oracle Instant Client](https://www.oracle.com/ca-en/database/technologies/instant-client/downloads.html)
## Install
```
npm install apex-publish-static-files
```
## Usage
```javascript
var publisher = require('apex-publish-static-files');
// If connecting to OCI (Oracle cloud) need to specify location of Oracle Wallet
process.env['TNS_ADMIN'] = '/Users/vmorneau/oracle/wallets/atp01';
publisher.publish({
libDir: "/Users/vmorneau/Oracle/instantclient_19_8",
username: "vmorneau",
password: "xxxxxx",
connectionString: "localhost:1521/servicename",
directory: "/Users/vmorneau/Documents/project/www",
appID: 111
});
```
## Options
Name | Type | Default | Description
--- | --- | --- | ---
libDir | string | | Path to Oracle Instant Client (example: `/Users/vmorneau/Oracle/instantclient_19_8`)
username | string | | Database user
password | string | | Database password
connectionString | string | | Database connection string
directory | string | | Local directory that contains the files or file path
appID | numeric | | Application ID to export the files to
destination | string | | Determines where the files should be uploaded in APEX (choices: `application`, `workspace`, `theme`, `plugin`)
## Methods
Name | Type | Description
--- | --- | ---
publish | function | Publishes the files to APEX
## Changelog
[See changelog.](changelog.md)
## License
MIT © [Vincent Morneau](http://vmorneau.me)