Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bettyblocks/nodejsoracleproxy
https://github.com/bettyblocks/nodejsoracleproxy
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bettyblocks/nodejsoracleproxy
- Owner: bettyblocks
- Created: 2018-12-03T10:28:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T08:16:31.000Z (about 2 years ago)
- Last Synced: 2024-03-26T23:54:20.783Z (10 months ago)
- Language: JavaScript
- Size: 98.6 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Oracle Node.js Proxy
## About
This is a proof of concept tool that makes it possible to expose an Oracle database via a web API. The only endpoint that has been worked out is the execution of an plain SQL query. The result of the query is the content of the API response.
For a more REST-like approach, CRUD controllers would have to be added per entity. To keep the tool as generic as possible, they are here not included.## Installation
- Install ODPI-C by following instructions @ https://oracle.github.io/odpi/doc/installation.html
## Configuration
Configuration happens through environment variables. For the database connection `USER`, `PASSWORD` and `CONNECTSTRING` are configurable. See `config/database.js` for details. The webserver port is configurable through the `HTTP_PORT` variable (uses `3000` by default).
## Booting
- Boot with `node index.js`
## Credits
The code is heavily inspired by [an article](https://blogs.oracle.com/oraclemagazine/build-rest-apis-for-nodejs-part-1) by [Dan McGhan](https://twitter.com/dmcghan)