Skip to content

Wraps the awesome Hem server in a proxy server so you can also get to an API server for your Spine app.

License

Notifications You must be signed in to change notification settings

brec-c/proxy-hem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

Wraps the awesome Hem server in a proxy server so you can also get to an API server for your Spine app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published