Socket
Book a DemoInstallSign in
Socket

combine-serve

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

combine-serve

combine-serve is used to combine multiple APIs and static files and serve them from a single origin.

latest
Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

combine-serve: combine static files and API endpoints and serve them as a unified server

Used to combine frontend and backend processes in development. For instance, if you're using node to develop your frontend and running a Java backend on port 7070:

combine-serve --serve /client build/ --proxy / http://localhost:7070 --port 7071 --host 127.0.0.1

will create a server running on port 7071 that serves the files in the build directory at http://localhost:7071/client and proxies other requests to http://localhost:7070/.

Specifying the host option allows you to bind to just a single interface; otherwise it will bind to all interfaces.

FAQs

Package last updated on 08 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts