- NodeJs (https://nodejs.org/en/)
- Docker (https://www.docker.com/)
// clone repo
~ git clone https://github.com/domengabrovsek/mountain-info.git
// install dependencies
~ npm install
// setup database
~ npm run setup-db
// run app
~ node index.js
-
[GET] http://localhost:3000/scrape // run this to populate database with initial data - will later be replaced with prepopulated docker image
-
[GET] http://localhost:3000/scrapeRoutes // run this to populate database with initial route data
-
[GET] http://localhost:3000/mountainRoute/:id // run this to get specific route data. ID is route id.
-
[GET] http://localhost:3000/mountainRoute/mountain/:id //run this to get ALL routes for specific mountain. ID is mountain id.
-
[GET] http://localhost:3000/routes //run this to get all routes
-
[GET] http://localhost:3000/mountain/:id // run this to get mountain data. ID is mountain id
-
[GET] http://localhost:3000/mountains //run this to get all mountains
-
[GET] http://localhost:3000/mountain/altitude/:altitude //run this to get mountain data where mountain altitude is bigger than input parameter
-
[GET] http://localhost:3000/mountain/min/:min/max/:max // run this to get montain data in altitude range
-
[GET] http://localhost:3000/mountain/name/:name //run this to get moutain data by name
-
[GET] http://localhost:3000/weather/lat=:lat&lon=:lon //run this to get weather data for specific location (lat, lon)
-
[GET] http://localhost:3000/weather/name/:name //run this to get weather data by city name