GithubHelp home page GithubHelp logo

kboul / deckgl-carto-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.25 MB

A client side app with the new deck.gl/carto module

Shell 0.20% HTML 1.33% TypeScript 95.21% Sass 3.26%
react carto typescript deck-gl

deckgl-carto-app's Introduction

Deck-gl Carto App

An app with the new @deck.gl/carto module written in React, Typescript & Sass without a css framework that allows the user to interact with the map by changing several map layer attributes. The map loads with all continent countries as a geojson and allows the user to change polygons' color, stroke size and stroke color. It also provides all countries geographical information per continent such as number of countries and population per continent.

Create .env file with the mapbox token

The app uses mapbox which requires a unique token for each user to be able to use it. This token is stored in a file which is not included in the current app's github repo. Therefore, you need to create a .env file in the project's root directory which will contain mapboxtoken as an env variable. So, create the file and define that variable like in the example below

REACT_APP_MAPBOX_TOKEN=your_mapbox_token

and you will be able to run the app without getting the mapbox token error on the console.

Run the project

clone the project

select master branch

Navigate to the root folder:

npm install
npm start

browser listens to http://localhost:3000 as default port.

Test the project

npm test

Get project's test coverage

npm run test:coverage

deckgl-carto-app's People

Contributors

kboul avatar

Watchers

 avatar  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.