Online Javascript weather app for my mom. Online preview: ciaoshen.com/mom
Weather forcast data (in JSON format) is fetched from OpenWeather API.
Using ES2017 async
and await
.
This project is developed with MVC pattern.
model.js
: A DAO(Data Access Object) API. It's aware of the data structure.view.js
: All DOM manipulations go to this file.controller.js
: A general manager. He is the only one who knows all the logic of different features. But he is blind from both data and DOM.model.js
andview.js
do these concrete tasks for him.
Happy coding! I love you mom❤️