0.1.1 • Published 7 years ago

promise-delay-rpf v0.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

geo-proxy

Redis-based caching proxy for Google Maps API queries.

Use case

Usages

Config spec

See lib/spec.js https://github.com/evanx/geo-proxy/blob/master/lib/spec.js

Implementation

See lib/main.js https://github.com/evanx/geo-proxy/blob/master/lib/main.js

Appication archetype

Incidently lib/index.js uses the redis-http-app-rpf application archetype.

require('./redis-http-app-rpf')(require('./spec'), require('./main'));

where we extract the config from process.env according to the spec and invoke our main function.

That archetype is embedded in the project, as it is still evolving. Also, you can find it at https://github.com/evanx/redis-http-app-rpf.

This provides lifecycle boilerplate to reuse across similar applications.

Docker

You can build as follows:

docker build -t geo-proxy https://github.com/evanx/geo-proxy.git

from https://github.com/evanx/geo-proxy/blob/master/Dockerfile