An open API service indexing awesome lists of open source software.

https://github.com/ibalosh/elevation


https://github.com/ibalosh/elevation

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# Elevation calculator

![](https://github.com/ibalosh/elevation/actions/workflows/testing.yml/badge.svg)

*Solution details*

* App loads the map with the default location set to the user's current location.
* User can change the location by **clicking on the map** or by **entering the coordinates**.
* Elevation is calculated after submitting the coordinates.
* Latest elevation submitted is displayed.
* Recent history of elevation submissions is displayed.
* History of all elevation submissions is displayed on separate page.

[Leaflet map library](https://leafletjs.com/) was used with [react leatflet wrapper](https://react-leaflet.js.org/) to display the map and
get the coordinates of the clicked location.

Initial location is read from the browser's geolocation API.

# Pre-requisites

To run the app:

* install node (if you use nvm, you can install the version specified in `.nvmrc` file)
* install the dependencies by `npm install`.

# Running the app

Run commands can be found in `package.json` file.

```bash
npm run dev # run the app
```