Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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.