Can be used globally or required as a module
Stand alone
npm install -g rsas
As a module
npm install --save rsas
Simple
rsas
Fully loaded
rsas /my-angular-project --port=8080 --env=production --proxy-url=www.google.com --proxy-route=/proxy
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'
});
Type: Number
Default value: 9000
The port to listen on.
Type: String
Default value: current working directory
The directory to serve.
Type: String
Default value: development
The current development environment development/production
.
Type: String
Default value: undefined
The url for the proxy to forward to.
Type: String
Default value: /api
The server route to forward to the proxy.