Coder Social home page Coder Social logo

jcooper458 / travelmap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jlfwong/travelmap

0.0 1.0 0.0 979 KB

A Map of Everywhere My Family Has Ever Been

Home Page: http://jamie-wong.com/experiments/travelmap/

Makefile 0.18% JavaScript 95.12% HTML 2.43% CSS 1.45% CoffeeScript 0.81%

travelmap's Introduction

Travel Map

travelmap

You can see the live version at http://jamie-wong.com/experiments/travelmap/ and read the teardown of the technology this uses in A Map of Everywhere My Family Has Ever Been.

Running Locally

You can run this locally by cloning the repository then running:

npm install -g brunch
npm install
brunch w -s

Then point your browser at http://localhost:3333

Customizing

To load this up with your own data, edit app/data.js. You'll probably also want to clear out the checked-in geocoding caches:

echo '{}' > app/assets/geocode_cache.json
echo '{}' > app/assets/reverse_geocode_cache.json

Deploying

Once you're happy with the result and want to deploy, you'll need to save your geocoding and reverse geocoding caches as JSON. You can do this by running the following in the console:

require("aggregate").saveCaches()

This should download a new geocode_cache.json and reverse_geocode_cache.json file to disk (Chrome might prompt to ask if you want to allow the site to download multiple files).

Then move the downloaded caches back into the repo:

cp ~/Download/geocode_cache.json ~/Download/reverse_geocode_cache.json app/assets

To build the final static site, run brunch build, then upload the contents of the public folder to your favourite static host.

travelmap's People

Contributors

jlfwong avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.