Oracle Magazine, July/August 2019
ORACLE MAGAZINE JULY AUGUST 2019 70 Database Developer OPEN SOURCE TESTING THE API With all the work completed its time to try the new additions to the API Run the following commands in a terminal cd oracle db examples javascript rest api part 5 manual pagination sorting andfiltering hr_ app npm install node That should start the Node js application If you get an ORA 01017 invalid username password error message it indicates that the environment variables referenced in the config database js file have not been set or are incorrectly set Run the following lines of code in a terminal and then try to start the app again echo export HR_ USER hr bashrc echo export HR_ PASSWORD oracle bashrc echo export HR_ CONNECTIONSTRING 0000 orcl bashrc source bashrc To test an upload open a new terminal window while the API is running in the previous terminal and run the following lines of code cd curl X POST http localhost 3000 api files
You must have JavaScript enabled to view digital editions.