User Tools

Site Tools


sweater:plain-old_web_tech_implementation

This is an old revision of the document!


Plain-old Web tech implementation

Exploring core functionality

The Sweater app's structural needs, at least for now, are quite modest. That makes it a good candidate for using just plain-old HTML/CSS/JS for the app's structure. In this next section, I will try to develop a basic app structure and implement data-handling using plain-old JS. If nothing else, this will give us a better understanding of the problem and where various libraries might be helpful.

If this turns out to actually be a manageable situation, we can then bring in the design specifications for the UI and functionality.

The HTML

Because the design specification for the app may still be in flux, the focus of the current work will be limited to getting the needed data from a data source and letting it update the UI. We start out with a very plain, text-only HTML page that has only enough markup in it to let some fields be updated with JS.

The determination of outerwear will require the knowledge of the current “feels-like” temperature, the wind speed, the expectation of precipitation, and if there is going to be precipation, what kind. Fields for each of these are included in this bare-bones HTML. We may not yet know how these data will translate into recommended outerwear, but we can be pretty confident that the determination will be based on these data.

sweater.html
<html>
TODO
</html>

Weather APIs

The project will need to periodically get updated weather conditions and then update the UI. So maybe a good next step is to start is surveying the the available weather APIs and pick the one that is well-suited to the project (as we currently understand it).

The JavaScript

The project's JS will need to periodically get updated weather conditions and then update the UI. So maybe a good place to start is surveying the the available weather APIs and pick the one that is best suited to the project (as we currently understand it).

sweater.js
// TODO
sweater/plain-old_web_tech_implementation.1551752863.txt.gz · Last modified: 2019/03/05 02:27 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki