Search code examples
node.jsamazon-web-servicesexpresscloud9aws-codestar

Quickly run express app in AWS cloud9 from app generated from cloudstar?


I created an express app using CodeStar and used Cloud9 as the IDE. Is there a simple way to quickly run the app from the Cloud9 integrated terminal, like nodemon on a desktop? I am getting annoyed having to commit, build, and deploy the application every time I want to test the code I just wrote.


Solution

  • Yes, just open a Terminal in Cloud 9 and start your app.

    Then click on "Preview" button in Cloud 9 toolbar.

    Detailed step by step instructions, incl. a few limitations, are detailed here https://docs.aws.amazon.com/cloud9/latest/user-guide/app-preview.html