Code Monkey home page Code Monkey logo

covid-tracker's Introduction

Covid-tracker

This is a Covid Vaccine Tracker made using HTML, CSS, JavaScript and CoWin Open API.
Hosted at https://udayan-banik.github.io/covid-tracker and https://sen-pai.codes (no longer active) has now moved to https://codemeds.co.in . All the codes of this repository are copyright to the owners of this repository. Any attempt of copying will be booked and legal action taken against.

Team

  1. Udayan Banik
  2. Supratim Sarkar

Git Cheatsheet for cloning the repo

  1. git clone repo ssh
  2. Open the folder with VSCode
  3. U for untracked files, A for newly-added files, M for modified files
  4. ctrl + ` to open the terminal in VS-Code
  5. git add filename.extension to add the file to your git repository
  6. git add . to add all files to your git repository
  7. git commit -m "head message" -m "description"to commit all the changes you have made to your local repository and add a message or comment describing your changes
  8. git diff to check differences between the working directory and most recent version on github
  9. git push to add changes to our repository
  10. git checkout -b branch_name to create new branch in your local repository and switch to it
  11. git push --set-upstream origin "new branch name" the code required to create a new branch
  12. git status to track what are the latest changes in your local git repository
  13. git merge "new branch" merge the changes brought by you in the newly created branch to the main/master branch of your repository
  14. git push to add the new files from the new branch merged into your master branch to our repository
  15. Sometimes you may come across a Conflict
  16. The conflict looks like this <<< new changes ==== existing code >>> now delete what side you want to keep and delete the rest part and also delete the symbols <<< ==== >>>
  17. Confirm the resolve by either clicking the resolve conflict on the web interface or by saving the file and repeating step 13 or 14 and then commit the changes and finally push to the repository! Hurray! You just did your first pull request to our repository!

covid-tracker's People

Contributors

supr4t1m avatar udayan-banik avatar

Stargazers

 avatar

Watchers

 avatar

covid-tracker's Issues

On firefox map zooms to wrong state when clicked

Describe the bug
In the states tab when a state is clicked, zooms to the wrong state.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Firefox
  2. Open codemeds
  3. Click on States -> Any state on map
  4. Wrong state is zoomed

Expected behavior
The correct state should be zoomed in.

Possible reason
sort() function sorts the states in reverse order and maps to dropdown elements.

Desktop:

  • OS: Windows
  • Browser: Firefox
  • Version: Latest

Smartphone:

  • Device: Any smartphone
  • OS: Android
  • Browser: Firefox
  • Version: Latest

State and District Data fetched even when `By PIN` is clicked

State and District data is fetched even when By PIN is clicked
In the network tab it is seen that the xhr request is made even when by PIN is clicked.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Covid Vaccine Tracker
  2. Click on by District
  3. Open Network tab
  4. Click on by PIN
  5. See the requests for state and district data made

Expected behavior
The request for state and district data should only be made when user clicks on By District

Screenshots
image

Desktop

  • OS: [Windows]
  • Browser [chrome]
  • Version [108]

Possible remedy
toggleMethod() in search-district.js is called every time either By PIN or By District is clicked. Need to implement logic to only request the server for the data when By District is clicked.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.