FL5: App using AWS Cloud9

Create a new AWS Cloud9 environment

➡️ Setup a new AWS Cloud9 environment, as shown below.

➡️ Make sure to use Ubuntu as underlying OS.

Amazon Linux also works, but requires you to manually add the Chromedriver for local testing - see bottom section.

Preparation menu

(Optional) Test locally

Run Build first (requires existing application, see here.)

$ ui5 build -a

Run Automated Test (might require ChromeDriver to be added manually - see bottom section)

$ npm test

Manual Test

$ ui5 serve -o index.html

Preview directly in Cloud9 (only works in Chrome or Firefox)!


e.g. https://67a6b15ddaa13c329027bb1849e7df48.vfs.cloud9.us-east-1.amazonaws.com/index.html

Preparation menu)

Troubleshooting Cloud9 Preview

(Optional) Install Chrome & ChromeDriver

(Requires root e.g. sudo -i)

$ sudo curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
$ sudo echo "deb [arch=amd64]  http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
$ sudo apt-get -y update
$ sudo apt-get -y install google-chrome-stable
$ wget https://chromedriver.storage.googleapis.com/81.0.4044.69/chromedriver_linux64.zip
$ unzip chromedriver_linux64.zip
$ sudo mv chromedriver /usr/bin/chromedriver
$ sudo chown root:root /usr/bin/chromedriver
$ sudo chmod +x /usr/bin/chromedriver