Skip to content

reekoheek/multidev-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multidev-proxy

Multi development proxy to use inside intranet network, support for Composer, NPM, and Github dist.

Install

Installation using npm

npm install -g multidev-proxy

Use

Run on terminal and the proxy will saves cache to $USER_HOME/.multidev-proxy/cache directory.

multidev-proxy

The proxy will run at port 8765 ( http://0.0.0.0:8765 ).

Use with Composer

Add to composer.json file of project

{   
    "repositories": [
        {
            "type": "composer",
            "url": "http://localhost:8765/local"
        },
        {
            "type": "composer",
            "url": "http://localhost:8765"
        },
        {
            "packagist": false
        }
    ]
}

Or add the config to the $USER_HOME/.composer/config.json to use it globally across projects.

Use with Github

The proxy will be used to download Github dist files. Keep relax and take an ice tea.

Use with NPM

To use proxy from specific project

npm --registry http://localhost:8765/registry.npmjs.org install [something]

Or, to use proxy globally, you can alter default configuration

npm config set registry http://localhost:8765/registry.npmjs.org/

Enjoy!

About

Multi development proxy to use inside intranet network, support for Composer, NPM, and Github dist.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published