Giter Club home page Giter Club logo

starbucks-map's Introduction

Starbucks Location Map

This project displays a map with all Starbucks locations and provides a filtering feature to display stores based on selected countries. Additionally, it includes a service to check if a set of coordinates falls within a specified country.

Screenshot of the Starbucks Location Map

Screenshot of the validation service

Features

  1. Map Display:

    • Utilizes OpenLayers to display a map.
    • Shows all Starbucks store locations retrieved from an external source.
  2. Country Filtering:

    • Dropdown to select a country.
    • Filters Starbucks locations on the map based on the selected country.
  3. Coordinates Validation Service:

    • A service that checks if a given set of coordinates falls within a specified country.
    • Deployed using Docker.

Libraries and APIs Used

  • OpenLayers: For map rendering and handling map-related functionalities.
  • Axios: For making HTTP requests.
  • @turf/turf: For geographic operations, such as checking if a point is within a polygon.
  • iso-3166-1: For ISO country code conversions.
  • Express: Node.js web application framework.
  • cors: For handling Cross-Origin Resource Sharing in the Express app.

Setup and Deployment

Prerequisites

  • Node.js and npm
  • Docker (for deploying the validation service)

Installation

  1. Clone the repository:
    git clone https://github.com/oferGavrilov/starbucks-location-map.git
    cd starbucks-location-map
  2. Install dependencies:
    npm install
  3. Start the development server - Client side: Open 'client/index.html' in a browser
    http://127.0.0.1:5500/client/index.html
  4. Start the development server - Server side:
    npm run dev

starbucks-map's People

Contributors

ofergavrilov avatar

Watchers

 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.