Skip to content

Assignment 4 for DevClub IITD's session on Javascript & APIs

Notifications You must be signed in to change notification settings

shashmahawar/DevClub-Assignment4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tasks

Task 1: Moodle+

You must have used moodle in your first semester, and observed it required you to solve a simple math question as a CAPTCHA.

Now, build a chrome extension which will solve this question automatically!

Head over to the Moodle+ folder for instructions

Task 2: Wordle+

The current implementation of Wordle is based completely on the front-end javascript code, so it is possible to find the answer by looking at the main javascript file of that page. Try doing this yourself!

This is not a secure way, so we are going to make a simple API, where the user can only make requests to our server with the guess, and the server returns the feedback response. This way, the user will not be able to directly hack the secret answer out of the program

Head over to the Wordle+ folder for instructions

Task 3: Covid Stats

It has been almost 2 years since the pandemic started, and you must have been regularly checking data of how many covid cases happened today and in the last few days. There are large datasets available on this, and many APIs have been developed with which you can easily fetch this data for your own analysis.

One such repository is by John Hopkins University, and there are some helper APIs like covid19api.com which make it convenient to fetch data from it. See the documentation and select Javascript in the language, and instead of console.log, save the response string in a variable and then parse it using JSON.parse

TODO

  • Your task is to fetch this data and then visualise it using ChartJS library. Work in the boilerplate index.html and script.js files.
  • You can also use your HTML/CSS designs from DevClub-Assignment1 in this assignment to make your page look nice, and host it using GitHub Pages. You can even use the frameworks which were allowed in the bonus task
  • Your webpage should atleast show a basic summary of total cases and cases today Globally and in India
  • Draw the chart of last 30 days cases in India

Bonus

You can think of more useful data points to display, and also try to give more controls in the chart, allowing the user to select the number of days they want to see, and maybe even select the location to global, or country-wise or state-wise. Feel free to show your creativity in this

Submission Instructions

  • FORK this repository, by clicking the "Fork" button on top right
  • For Task 1, edit the code in the Moodle+ folder, and after successfully setting it up, take a screenshot or a short video showing the functioning of your extension, and include it in the README
  • For Task 2, edit the code in the Wordle+ folder, and include a screenshot of the request and response in the README. If you deployed your API to heroku, include the link in the README too!
  • For Task 3, edit the code in index.html and script.js files. Deploy your page using GitHub Pages
  • When you are done, fill this Google Form to submit finally

Resources

About

Assignment 4 for DevClub IITD's session on Javascript & APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.8%
  • HTML 10.2%