1.0.0 • Published 8 years ago

eserve v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

eServe

eServe is a express server with simple API for static files serving and http proxing. The problem that eServe is solving is a simple API based library that mounts static files and HTTP proxies onto express app and serves them.

Example

Install eServe

npm install eserve --save

Your index.js or some other file for serving and proxing.

const eserve = require('eserve');

// serve build files
eserve.statics('build');
// serve proxy api
eserve.proxy('/api/fixer', 'http://api.fixer.io/latest');
// start server on 3000 port and localhost
eserve.start(3000, 'localhost');