proxy-hem

0.0.1 • Public • Published

Because Hem is awesome but missing one thing...

When playing around with SpineJS I also discovered Hem. I immediately loved it and really wanted to use it with all my projects, everything I build for work and home is coffeescript and stylus. The only thing missing was built in support for the models to make ajax calls to an API or CRUD server. That's where proxy-hem comes in. Proxy-hem really only does one thing, it runs hem and it runs http-proxy. All requests for static content: images, stylesheets, javascript, etc... are directed to Hem. Everything else is passed through to the default server.

Installation

npm install -g proxy-hem

Usage

The proxy server will setup to run at http://localhost:3000 by default. Configuration for this is coming soon.

Proxy-hem should be run from the directory where the slug.json file exists. You can specify a port for Hem to use using -p. Otherwise, the only Hem command used is 'server'.

The API server is expected to be running at https://localhost:4000. Configuration for this is coming soon.

For Hem usage, see Hem guide

Readme

Keywords

none

Package Sidebar

Install

npm i proxy-hem

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • brec-c