0.6.3 • Published 10 years ago
rsas v0.6.3
rsas 
A super-basic angular server
Can be used globally or required as a module
Installing
Stand alone
npm install -g rsasAs a module
npm install --save rsasUsage
Stand alone
Simple
rsasFully loaded
rsas /my-angular-project --port=8080 --env=production --proxy-url=www.google.com --proxy-route=/proxyAs 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.