Giter Site home page Giter Site logo

qpmjcv / maps-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from castromaciel/maps

0.0 0.0 0.0 601 KB

Find city using Mapbox API

Home Page: https://castromaciel.github.io/maps-app/

License: MIT License

Shell 2.51% TypeScript 87.04% HTML 3.85% SCSS 6.60%

maps-app's Introduction

Maps App

Vite React TypeScript SASS

The objective of the application is to create a React application using Mapbox. It allows us to carry out a search for places, locate ourselves in the selected place on the map, generate a line with the nearest route. As well as show us the distance in kilometers and the time in minutes it would take to reach our destination by vehicle.

image

image

Apis Used are:

  • Geocoding to search places.
  • Directions to generate polyline and show distance and time between two points.

Development

To get a local copy, clone it using:

git clone https://github.com/castromaciel/maps-app.git

Install dependencies:

yarn install
or
npm install 

Available Scripts

In this project, you can run the following scripts:

Script Description
yarn build Builds the app for production to the dist folder.
yarn deploy Deploys the app at github pages.
yarn dev Runs the app in the development mode.
yarn preview Start a local web server that serves the built solution from ./dist for previewing
yarn test Runs tests with jest.

Base Dependencies

Folder Structure

template-vite-react-ts
├── node_modules
├── public
│   └── vite.svg
└── src
    ├── __tests__
    ├── apis
    ├── components
    ├── context
    ├── helper
    ├── hooks
    ├── interfaces
    ├── screens
    ├── index.scss
    ├── main.tsx
    ├── MapsApp.tsx
    └── vite-env.d.ts
├── .env
├── .eslintrc.json
├── .gitignore
├── .babel.config.json
├── .deploy.sh
├── index.html
├── jest.config.ts
├── jest.setup.ts
├── package.json
├── README.md
├── tsconfig.json
├── tsconfig.node.json
├── vite.config.js
├── yarn.lock

Styleguide

For coding styling, I decided to use eslint and the eslint-airbnb configuration, with some personal modifications.

Credits

Maps-app is built and maintained by Castro Maciel

License

This project is licensed under the terms of the MIT license.

maps-app's People

Contributors

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