rsas

0.6.3 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i rsas

Weekly Downloads

1

Version

0.6.3

License

MIT

Last publish

Collaborators

  • ndxbxrme