WeatherTop is a web application allowing users to view weather data as well as to add weather stations and weather data. A user must register and log in before they can use the application.
I used the following websites and tutorials while working on this project:
- Handlebars templating language: https://handlebarsjs.com/guide/expressions.html handlebars templating language
- Javascript, calling a function: https://www.w3schools.com/js/js_function_invocation.asp
- Javascript, creating a map object: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
- toPrecision() method: https://www.w3schools.com/js/js_number_methods.asp
- For loop: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration
- Getting 2nd and 3rd last items in array: https://stackoverflow.com/questions/6499012/get-the-second-to-last-item-of-an-array
- Adding timestamp: https://www.toptal.com/software/definitive-guide-to-datetime-manipulation
- Adding timestamp: https://www.w3schools.com/jsref/jsref_getdate.asp
- Adding timestamp: https://stackoverflow.com/questions/10830357/javascript-toisostring-ignores-timezone-offset/28149561#28149561
- Sorting stations alphabetically: https://www.w3schools.com/js/js_array_sort.asp sorting stations alphabetically
- Sorting stations alphabetically: https://flaviocopes.com/how-to-sort-array-of-objects-by-property-javascript/
- Using leaflet.js: https://www.youtube.com/watch?v=HIO4nSoVkGM
- Centering map: https://stackoverflow.com/questions/15206863/centering-map-on-array-of-markers-bounds-leaflet/15207357#15207357