Skip to content

eglazkova/DWD_A3_VanillaWeather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vanilla Weather project

This is my third assignment for the Dynamic Web Development class in ITP, NYU. The course focuses on the fundamentals of building "full stack" web applications. This week I should make responsive web application that works with an API.

Screenshot-2020-02-23-at-11-15-55 Screenshot-2020-02-23-at-11-15-40

About

The concept of the final app is simple — it shows you the weather in your area, depending on the geolocation. It also displays the corresponding image and a brief description: "cloudy", "it's raining", etc. You can switch between Celsius and Farenheit by clicking on the degrees. Important thing to note: to build this I followed the video tutorial by Dev Ed. In terms of my studies, it is also important to note, that there wasn't any previous github repository based on this one. Following along this tutorial is a good exercise for beginner like me because of the few reasons.

  1. It gives another chance to practice CSS styling and get the result before getting too frustrated.
  2. It introduces the interactive elements real fast and again, results are there before you get desperate.
  3. It helps to practice ARROW FUNCTIONS.
  4. In general, the code is modern and based on the things that we discussed in class, and it was really useful to me to get the sence of how to implement new concepts all at once, starting from HTML DOM getElementById() Method to fetch().
  5. The API used in a tutorial is a very simple one, which again, is a great thing to get results fast.
  6. The tutorial also introduces Skycons JS library, which is simply fun, nice and easy to use.
  7. It introduces the work with API "proxy" (in this case heroku's cross-origin API).

Notes & Process

Initially, I had bigger plans for this assignment. First of all, I had some experience of working with APIs for my previous class at ITP (Introduction to computational media). I made the app that searches for the latest New York Times articles with the key word from the user. There is the code in p5 web browser. So, I felt myself somewhat an expert and decided to work on one more NYT API, the community API. This API is still in beta, and it gives you the UGC (more specifically — user comments) on the specific article. Important note — NYT asks you to generate your own key to use the API base URL. Of course, that wasn't the hardest part for me. What stopped me at this point was the necessity to get the "mechanics" behind the app and then to implement it in code. This API gives the comments on the specific article, however, I wanted the user to search for the key word, then to receive most popular articles on this subject, then to see the comments on each of them. That already means using 3 of NYT APIs.

Screenshot-2020-02-22-at-17-40-45

Second "big idea" was to use Telegram API. It has a really friendly documentation, however, the most readable part of it is dedicated to working with Bots.

Screenshot-2020-02-22-at-13-15-47

I spent a great deal of time researching and thinking of the possible applications (most importantlty — outside of Telegram!), and found out, first of all, that there are surprisingly many Telegram channels and groups in English. So, I was thinking about a few things, basically:

  1. The "out of the bubble" app (I am working on something related to that for UX/UI class) — that sends you push notification about the cool content from someone or somewhere in the world on the random subject that you would never look for. There is a somewhat similar project on music that used to be free of charge.

  2. Something like "I don't wanna be a stalker" app. That's a questionable concept but I was told by my friends for a few times that they sort of track their "exes" on Telegram and other messengers, which is, well, unhealthy. Blocking the person, however, is also unhealthy (remember "Black mirror"?). Besides, people don't always want to deprive others of the chance to fix the relationship — they just want to control themselves better when it's hard to focus on the other things naturally. That made me think of the app where you can totally block yourself from the specific user (no search, no contact, no tracking) until THEY reach out.

  3. And finally, searching for the data visualisation APIs, I found a very intriguing one.

Screenshot-2020-02-23-at-13-27-40 Screenshot-2020-02-23-at-13-54-22

This one is not free, however, and demands a really strong understanding of working with data, I guess. But I loved it anyway.

So, I spent some time messing around all of the mentioned above ideas in code, and realised that working with APIs is a big deal since all of them are different, and demands solid understanding of what's going on both in your HTML and JS files. I ended up working on one more weather app, and caled it "Vanilla" for a reason that this is, yes, a very vanilla version of this exercise. However, I am glad that I feel much more comfortable about arrow functions now. I also have at least a few drafts of code that may probably lead me to the final project for this class. And I kind of forced myself to follow "git init, git add., git commit" prosedure (not sure that did everything correctly, though, but still).

Screenshot-2020-02-23-at-13-53-49

Screenshot-2020-02-22-at-21-04-09

Design

I didn't really get to the sketching part here, because I only customized colors, font-family and layout in general — to make it look more vanilla.

Deployment

This project is deployed on Glitch. It needs you to allow your geolocation to display properly. Please use Google Chrome web browser.

Built with

Questions

I was wondering what this message in my VS editor means 😳

Screenshot-2020-02-22-at-12-43-34

References

*Dev Ed weather app tutorial

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published