/nodejs-example

Node.js example app using express for the Gleis PaaS

Primary LanguageJavaScript

Node.js example app for Gleis PaaS

This is a simple Node.js example app made for the Gleis PaaS and which uses the Express web framework.

Prerequisites

In order to run this sample app locally you will need Node.js to be installed on your computer and an account on the Gleis PaaS as well as the Gleis Ruby gem to be able to deploy it.

Try out sample app locally

Download your own copy of this sample app:

$ git clone git@github.com:towards/nodejs-example.git
$ cd nodejs-example

Install dependencies:

$ npm install

Start app:

$ npm start

The sample app should now be reachable locally at http://localhost:5000/

Deploy to Gleis

Create new app on Gleis:

$ gleis app create

Upload app to Gleis:

$ git push gleis master

The sample app will be online in a few seconds and reachable through the secure URL mentioned when you created the Gleis app with the above command.