0.3.0 • Published 6 years ago

tri-proxy v0.3.0

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

tri-proxy

A simple development HTTP proxy for IBM TRIRIGA UX views.

tri-proxy is a node.js application that serves one or more TRIRIGA UX views from the local file system and proxies all other views files and ajax calls to a TRIRIGA server.

After the tri-proxy is started, it automatically opens the browser. The tri-proxy watch your view files as you work. Changes you make will cause the browser to do a full-page refresh.

Installation

$ npm install tri-proxy -g

Synopsis

$ tri-proxy -t <tririga_url>

Options

  • -t, --target url The URL of the TRIRIGA server that the proxy can delegate requests to. It must include the context path.
  • -p, --port port The local TCP port to be used by the proxy server. Defaults to 8001.
  • -v, --views view ... The name of the view(s) to be served from the local file system. Defaults to the current directory name.
  • -d, --dirs directory_path The directory path(s) that contains the files for the view(s) specified by the -v option. Defaults to the current directory path.
  • --version print tri-proxy version.
  • --help print this message.

Usage

To proxy a view called my-app, run the following command:

$ cd my-app/
$ tri-proxy -t <tririga_url>

To proxy multiple views at the same time, run the following command:

$ tri-proxy -t <tririga_url> -v <name_of_view_1> <name_of_view_2> -d <diretory_for_view_1> <diretory_for_view_2>

To proxy using a custom port, run the following command:

$ tri-proxy -t <tririga_url> -p <local_port>
0.3.0

6 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago