can't Preview the application in aws cloud9 when uses express application generator

141
May 05, 2019, at 06:50 AM

I am using AWS cloud 9. when I use express application generator, I can't preview my application. Is it because of any port problem?

Answer 1

For application preview and sharing instructions, see https://docs.aws.amazon.com/cloud9/latest/user-guide/app-preview.html

To summarize the preceding information...

To preview your running application, be sure to:

  • Run using HTTP over port 8080, 8081, or 8082 with the IP of 127.0.0.1, localhost, or 0.0.0.0. (You don't have to use these ports or IPs. However, you won't be able to preview--skip ahead to the "to share..." part.)
  • With the corresponding application code file open and active in the AWS Cloud9 IDE, choose one of the following on the menu bar: Preview, Preview Running Application --OR-- Tools, Preview, Preview Running Application.

To share your running application with others, be sure to:

  • Set up the AWS Cloud9 development environment's associated Amazon EC2 security group to allow incoming HTTP requests over port 8080, 8081, or 8082. (Or whatever port the app is running on.)
  • Set up the AWS Cloud9 development environment's associated network ACL in Amazon VPC to also allow incoming HTTP requests over port 8080, 8081, or 8082. (Or whatever port the app is running on.)
  • Have others browse to your Amazon EC2 instance's public IP address. Be sure to start the URL with the correct protocol, add the port number if it is not the default for that protocol, and any other required URL components for your app (for example, /index.html, etc.).
Rent Charter Buses Company
READ ALSO
Stringifying JSON data loses object I'm trying to stringify

Stringifying JSON data loses object I'm trying to stringify

I'm new to NodeJS and I'm trying to learn it a bit better by writing a Discord botBut I'm having an issue with stringifying an object to JSON

121
How to use rewire to mock dependencies of nested exports

How to use rewire to mock dependencies of nested exports

So my question here is - how can I employ a shim over both evil and Evil if I load main-specjs as:

126
Handling sessions with jwt on client side applicatoin

Handling sessions with jwt on client side applicatoin

I am trying to set up a rest api for a client side applicationThis application will be written with react and have a node/express back end

146
Why does Redis (Nodejs) automatically updates its cache after new item has been added to database?

Why does Redis (Nodejs) automatically updates its cache after new item has been added to database?

I wanted to play around with Redis, so I wrote simple endpoint for fetching blogs and quite soon encountered the "sweet problem" since code does work, but I do not no why

110