-
Notifications
You must be signed in to change notification settings - Fork 1.1k
AngularJS & NodeJS & OracleDB Implementation Has Problem With The Library #957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Angular code and oracledb don't go well together. (Angular executes client side...oracledb...doesn't) |
I use the same implementation for oracledb.
|
Allow me to explain in a better manner. The problem is not your code, but how your project is built. Angular is only meant for FrontEnd Development, you cannot have oracleDB inside an Angular project, it will not work properly. The angular code executes itself in the user's browser, which is completely different in nature to how OracleDB works. OracleDB compiles itself into a host machine, with proper adjustments made to behave correctly given different system/architecture etc. Thus, using OracleDB in a FrontEnd project is not a proper approach. Your code for OracleDB functionality is correct, however, you need to separate it into a project of its own. The correct way to design an application to access OracleDB is to have a backend only project that will access your data, and share that through Rest Apis. In your code screenshots, it is possible to see that the code is inside the Angular project, which is not the correct way to go. Start a new NPM project with only OracleDB and the dependencies needed to share data (express, koa, nest.js, pick your favorite). It will work for sure. There are some other issues in this repo that have addressed the same question: #894 I hope this clarifies your doubts. |
Closing due to lack of activity. Thanks @danilohgds for your inputs. |
For general questions:
I'm working on a project which uses AngularJS as fronted and NodeJS as backend. When I implement the .js folder that connects my oracle database server, the compiler gives me the error below.
Also the script works by itself via this command
node app.js
How can I fix that?
Answer the following questions:
PATH
environment variable (on Windows) orLD_LIBRARY_PATH
(on Linux) set to? On macOS, what is in~/lib
?The text was updated successfully, but these errors were encountered: