Deploy JET app in Oracle Application Container in 30 minutes


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)

  1. Install Node.js
  2. npm install express-generator
  3. express myapp
  4. cd myapp
  5. npm install
  6. npm start (test the app in thebrowser http://localhost:3000)
  7. npm install yo
  8. yo oraclejet myjet --template=navdrawer
  9. npm  install yo bower grunt-cli
  10.  npm  install generator-oraclejet
  11. cd myjet
  12. grunt build
  13. grunt serve (a browser window opens up with the jet app)
  14. CTRL+C
  15. cd ..
  16. cp -r myjet/* myjet/public/
  17. vi manifest.json
  18. {
    "runtime":{
    "majorVersion":"8"
    },
    "command": "node ./bin/www",
    "release": {},
    "notes": "myapp for ACCS"
    }
  19. cd ..
  20. zip  ../myapp.zip *
  21. Deploy to ACCS from cloud portal:

    This slideshow requires JavaScript.

That’s it

Enjoy 😉

 

One Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.