Giter Club home page Giter Club logo

gah-node's Introduction

hello-world-nodejs

This is a basic example for a hello world nodejs app with Docker workflow running on teracy-dev v0.5.0

Getting Started

  • Set up the latest stable version of teracy-dev v0.5.0 from: https://github.com/teracyhq/dev

  • Create the following custom configuration by creating vagrant_config_override.json file into the ~/teracy-dev directory with the following content:

{
  "provisioners": [{
    "_id": "0",
    "json": {
      "teracy-dev": {
        "proxy": {
          "container": {
            "enabled": true
          }
        }
      }
    }
  }],
  "plugins": [{
    "_id": "2",
    "options": {
      "aliases": ["hello-d.teracy.dev", "hello.teracy.dev"]
    }
  }]
}

After $ vagrant reload successfully, $ vagrant hostmanager and clone this repo into the ~/teracy-dev/workspace directory:

$ cd ~/teracy-dev/workspace
$ vagrant hostmanager # to update the hosts file for alias domains
$ git clone https://github.com/teracyhq/hello-world-nodejs.git

Running on dev mode

Open a new terminal window, ssh into the teracy-dev VM to execute the following commands:

$ vagrant ssh
$ ws
$ cd hello-world-nodejs
$ docker-compose up -d

After that, open hello-d.teracy.dev on your browser to see the app on the dev mode.

Running on prod mode

Open a new terminal window,, ssh into the teracy-dev VM to execute the following commands:

$ vagrant ssh
$ ws
$ cd hello-world-nodejs
$ docker-compose -f docker-compose.prod.yml up -d

After that, open hello.teracy.dev on your browser to see the app on the prod mode.

License

MIT, see the LICENSE file.

gah-node's People

Contributors

sjnyos avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.