0.6.3 • Published 9 years ago

rsas v0.6.3

Weekly downloads
11
License
MIT
Repository
github
Last release
9 years ago

rsas Build Status

A super-basic angular server

Can be used globally or required as a module

Installing

Stand alone

npm install -g rsas

As a module

npm install --save rsas

Usage

Stand alone

Simple

rsas

Fully loaded

rsas /my-angular-project --port=8080 --env=production --proxy-url=www.google.com --proxy-route=/proxy

As a module

Quarter-pounder

var rsas = require('rsas');
rsas.listen();

With cheese

var rsas = require('rsas');
rsas.listen({
    dir: '/my-angular-project',
    port: 8080,
    env: 'production',
    'proxy-url': 'www.google.com',
    'proxy-route': '/proxy'
});

Options

port

Type: Number
Default value: 9000

The port to listen on.

dir

Type: String
Default value: current working directory

The directory to serve.

env

Type: String
Default value: development

The current development environment development/production.

proxy-url

Type: String
Default value: undefined

The url for the proxy to forward to.

proxy-route

Type: String
Default value: /api

The server route to forward to the proxy.

0.6.3

9 years ago

0.6.2

9 years ago

0.6.1

9 years ago

0.6.0

9 years ago

0.5.2

9 years ago

0.5.1

9 years ago

0.5.0

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago