microservice to get the city and country from last foursquare checkin
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.env.example
.eslintrc.js
LICENSE
README.md
index.js
package.json
yarn.lock

README.md

Where Am I

Simple (now) microservice that will return the city and country of the last checked in place on Swarm/Foursquare of a user.

Since this is pretty rough, you will just have to hardcode two ENV VARIABLES

These come from from https://foursquare.com/developers/explore#req=users%2Fself:

https://api.foursquare.com/v2/users/self?oauth_token=xxx&v=nnn

A Google maps api key can be found at https://console.developers.google.com/apis/credentials?project=_

Then you can use this as

GOOGLE_API_KEY=yyy FOURSQUARE_API_KEY=xxx FOURSQUARE_VERSION=nnn yarn dev

It can be deployed to now like this:

now -e GOOGLE_API_KEY=yyy -e FOURSQUARE_API_KEY=xxx -e FOURSQUARE_VERSION=nnn