Oracle Magazine, May/June 2018
Database Developer OPEN SOURCE With your setup the Oracle Database developer VM and Node js version 8 or higher installed in it complete open a new terminal by going to Applications Favorites Terminal and then run the following commands ORACLE MAGAZINE MAY JUNE 2018 91 cd mkdir hr_ app cd hr_ app touch index js mkdir config touch config web server js mkdir controllers mkdir db_ apis mkdir services touch services web server js The project will be contained in the hr_ app directory The directories within hr_ app should be easy to understand based on their names and the High Level Components overview above The index js file can be thought of as the main file in a Java app it will be the entry point of the application You will be adding code to that file and the web server js files in the config and services directories in this article Go to Applications Favorites Files to open the file browser and navigate to Home hr_ app config Double click web server js to open it in the gedit text editor Copy and paste the following code into the file and save your changes module exports
You must have JavaScript enabled to view digital editions.