What you need:
A laptop
An Oracle Cloud Subscription
STEPS
(here what I did in my mac at Darwin Kernel Version 17.3.0: Thu Nov 9 18:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X86_64 x86_64)
- Install Node.js
-
npm install express-generator
-
express myapp
-
cd myapp
-
npm install
-
npm start (test the app in thebrowser http://localhost:3000)
-
npm install yo
-
yo oraclejet myjet --template=navdrawer
-
npm install yo bower grunt-cli
-
npm install generator-oraclejet
-
cd myjet
-
grunt build
-
grunt serve (a browser window opens up with the jet app)
- CTRL+C
-
cd ..
-
cp -r myjet/* myjet/public/
-
vi manifest.json
-
{ "runtime":{ "majorVersion":"8" }, "command": "node ./bin/www", "release": {}, "notes": "myapp for ACCS" }
-
cd ..
-
zip ../myapp.zip *
- Deploy to ACCS from cloud portal:
That’s it
Enjoy 😉
One Comment