Skip to content

a local mirror for googleapis using wget and nodejs. a fork of git://github.com/rmm5t/googleapis-mirror.git

Notifications You must be signed in to change notification settings

nicoster/googleapis-mirror-wget-node

Repository files navigation

Google Library APIs Mirror

This is a subset mirror of the Google Libraries API CDN meant to be served from your local development machine when internet access is lacking.

Instructions

Step 0: Clone this repository

git clone git://github.com/nicoster/googleapis-mirror-wget-node.git

Step 1: Run build-local-cache.sh to download a copy of all the libraries listed in libraries.txt. You need to have wget installed

Step 2: If you aren't on OS X, you can alternatively map ajax.googleapis.com to 127.0.0.1 using /etc/hosts or any equivalent.

Step 3: npm install. Now you should have the following dir hierarchy:

googleapis-mirror/
├── README.markdown
├── ajax.googleapis.com
   └── ajax
├── build-local-cache.sh
├── libraries.txt
├── make-alias.sh
├── node_modules
   └── express
├── package.json
└── server.js

Step 4: sudo node server.js. you may like to run it using forever sudo forever server.js

Author

Ryan McGeary (@rmm5t) superkuh

Other

MIT License

About

a local mirror for googleapis using wget and nodejs. a fork of git://github.com/rmm5t/googleapis-mirror.git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published