Git Product home page Git Product logo

ap-latam-web's Introduction

AP Latam website

This repository contains the source code for the website of AP Latam. Visit the website at http://dymaxionlabs.com/ap-latam/

Install

To build and deploy you need to have Node and yarn installed. After cloning the repo, run yarn to install all dependencies.

You have to create a .env.development and .env.production with the variable MapboxAccessToken defined in both files.

For updating Mapbox dataset, you also will need to have installed:

Develop

Simply run yarn start to start the development server.

For a production build, run yarn build.

Update datasets

The map view uses a Mapbox style to show datasets via vector tiles. If you add a new city, or update datasets, you should update the Mapbox dataset.

npx geojson-merge $(for f in data/*/; do echo $f$(ls -1r $f | head -1); done | xargs) > /tmp/ap-latam.geojson
tippecanoe -o /tmp/ap-latam.mbtiles -zg --drop-densest-as-needed /tmp/ap-latam.geojson
mapbox upload $USER.ap-latam /tmp/ap-latam.mbtiles --access-token $TOKEN

where $USER is the Mapbox user, and $TOKEN is an access token with the appropriate permission for uploading datasets.

License

All files contained in the data directory are made available under the Public Domain Dedication and License version v1.0 whose full text can be found at http://opendatacommons.org/licenses/pddl/

The web site source code is released under a BSD-2 license. Refer to LICENSE.md for more information.

ap-latam-web's People

Contributors

dependabot[bot] avatar munshkr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nfelix23

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.