This is a simple example of an static file server using Node.js and Express.
This uses the npm module express
. Be sure to install express
, then use node
to run the server:
npm install express
node server.js
Your server should be up and running, and available at
https://express-static-server-CLOUD9USER.c9.io
. You can click "Share" in the
upper-right corner of Cloud9 to see your application's public URL (or the preview URL).
You can also open server.js
and click the green Run
button to launch your
website. See Cloud9's documentation on how to run an application.
MIT