https://github.com/ibalosh/elevation
https://github.com/ibalosh/elevation
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ibalosh/elevation
- Owner: ibalosh
- Created: 2024-12-15T11:17:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-15T20:20:29.000Z (over 1 year ago)
- Last Synced: 2024-12-15T21:25:58.091Z (over 1 year ago)
- Language: TypeScript
- Size: 123 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elevation calculator

*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
```