Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nimalank7/thermostat
Makers Thermostat Challenge
https://github.com/nimalank7/thermostat
ajax javascript learning
Last synced: 28 days ago
JSON representation
Makers Thermostat Challenge
- Host: GitHub
- URL: https://github.com/nimalank7/thermostat
- Owner: nimalank7
- Created: 2024-09-07T12:34:51.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-09-08T10:26:07.000Z (5 months ago)
- Last Synced: 2024-11-14T09:40:06.712Z (3 months ago)
- Topics: ajax, javascript, learning
- Language: JavaScript
- Homepage:
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How the application works
From https://github.com/makersacademy/course/blob/main/thermostat_es6/README.md
Application is a thermostat which uses browser's DOM functions to retrieve the temperature from `api.openweathermap.org`.
- `index.html` is our view that contains the HTML for our thermostat.
- `thermostat.js` is the model that contains the business logic for our thermostat
- `events.js` sets up event listeners, creates the thermostat and fetches the temperature from the API.Flow of interaction:
**User input -> Event Listener -> Update model -> Update view to reflect change in model**
## Run the application
Open `index.html` in Chrome.
## Tests
Open `SpecRunner.html` in Chrome.