/OpeNode_Deploy_Example

A simple Node.JS (Express App) boilerplate to deploy on OpeNode.io (www.openode.io)

Primary LanguageJavaScript

simplinnovation

Deploy NodeJS (Express App) to OpeNode.io

opeNode (https://www.openode.io/) is a reliable and fast Cloud Node.js hosting service to deploy your Node.js app instantly. In this repo, I'll share the example of Node.js app (using Express) that can be deployed to opeNode. Follow my instructions below. Happy hacking!

simplinnovation_openode

1. Create an account by sign-up/login to opeNode.

2. Install opeNode CLI (Command Line Interface) globally:

  $ npm install -g openode

3. Clone the Node.js boilerplate from my repo:

  $ git clone https://github.com/LintangWisesa/OpeNode_Deploy_Example.git

4. Go to the repo then install all packages needed:

  $ cd OpeNode_Deploy_Example
  $ npm install

5. Edit Express app route on routes/renderer.js! Make sure there is no error on your app by running server.js. Server will be running by default on localhost:3002!

  $ node server

or simply type:

  $ npm start

Open localhost:3002 via browser, then try also to open localhost:3002/something. If everything's fine, the response will be similar to the picture below:

simplinnovation_ok

6. So your app is working fine locally. Close your server (CTRL + C) then create a Dockerfile:

  $ openode template

Answer some questions & follow its process until done.

    Would you like to [l]ogin or [r]egister a new account?:  (r) l
    email:  lintang@wisesa.com
    password: *****

    [DDD MMM dd yyyy hh:mm:ss GMT+0700 (SE Asia Standard Time)] -  [+] Authentication valid.
  
    Type your subdomain sitename (Example: my-site) OR custom domain (mysite.com): lintang

7. Finally, it's time to deploy to opeNode:

  $ openode deploy

On last step, we will get our app's URL on opeNode.

  [ { location: 'usa',
      result: { result: 'success', URL: 'http://my_url.fr.openode.io/' } } ]

Try to open that URL via browser. Finish! Your app has just been deployed!

simplinnovation_online

More information click here.

Lintang Wisesa 💌 lintangwisesa@ymail.com

Facebook | Twitter | Google+ | Youtube | :octocat: GitHub | Hackster