Skip to content

Commit

Permalink
PRODUCTION DEPLOYMENT (#172)
Browse files Browse the repository at this point in the history
* Added Null State Component in NEW-UI

* ✨ added a seperate component

* Create PULL_REQUEST_TEMPLATE

* Added PR template

* removed pr template

* Created PR Template

* Edited path for PR Temmplate

* feat: add map to each result-card

* docs: contribution gudelines, refactor readme and pr template

docs: create os-related guidelines

docs: update readme and create open-source guidelines

docs: update pr template

docs: remove header from pr template

* docs: fix broken link

* added a loading componetn

* add basic dark/light mode functionality

* Delete package-lock.json

* refactor: remove unused vars

* feat: add marker component to pinpoint location on the map

refactor: switch to react-map-gl

 WIP: feat: marker

feat: marker component to pinpoint location on map

* refactor: remove static imports

refactor: use static imports

refactor: remove static imports

* fixed conflicts 🔨

* fixed conflicts 🔨

* refactor: remove unused vars

* fixed conflicts 🔨

* fixed conflicts 🔨

* edited .env.example

* Update CONTRIBUTING.md

* fix: merge conflicts

* Update Contributing.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* fixed responsive 🔨

* fixed responsiveness 🔨

* map error 🔨

* hidden map block for mobile devices

* Added initial look for about us page

* Added no of contributors

* dynamically get contributor data

* dynamically get contributor data

* Revert "About Page Revamp"

* Added contributors list in about page

* changed order

* Added user types

* made about page responsive

* did the changes again

* added image to error message

* added extra info to the about page

* Add license scan report and status (#131)

Signed off by: fossabot <[email protected]>

* about page:darkmode compatible

* Deleted package-lock.json

* Revert "added a loading componetn"

This reverts commit 59e9212.

* reverted indentaions

* added === instead of ==

* Fixed wrong url being passed for git profiles

* fixed loading issue 🔨

* fixed loading issue 🔨

* Create codeql-analysis.yml

* Update README.md

* fixed max height of the contributors container.

* added contributors count

* added CSS for the contributor count

* responsive fix

* Added loading state in contributor section

* added links in the navbar

* added path to main app.js

* Update README.md

* fixed appResponsiveness 🔨 (#146)

* Feature: Add Whole world Vaccine Information (#145)

* added links in the navbar

* added path to main app.js

* added Seperate tabs

* renamed some files

* Added seperate file for world anf india

* Added paper for showing information

* centralised tabs

* Added css for info and fetched data

* responsive fixes

* fixed ccs

* Added cards on various info from world

* Destructured code

* responsive css

* changed paper title color

* destructered for a general view of data

* added error check

* content divided to components

* Added world covid data by continents

* Added loading before data is fetched

* Removed unecessary loading from india tab

* Enhancement: Enhanced the look for word COVID Info (#149)

* destructered for a general view of data

* added error check

* content divided to components

* Added world covid data by continents

* Added loading before data is fetched

* Removed unecessary loading from india tab

* removed unnecessary files

* Feature: Add Test Cases (#153)

* test setup completed

* add render Header test case

Because:
- checks weather components exists
- stops unnecessary errors

* click event tested, snapshot created

Because:
- better code coverage
- fix future errors

* tests folder created

* intro component tested

* home component tested

* covidInfoMain component tested

* handleTabChange test included

* about component tested

* docs updated for tests

* added test scripts in  package.json
Changes:
- snapshot script added
- coverage script added

Co-authored-by: Kunal Kumar <[email protected]>

* removed pagination from default branch (#156)

* Merge to Staging  (#157)

* Added Null State Component in NEW-UI

* ✨ added a seperate component

* Create PULL_REQUEST_TEMPLATE

* Added PR template

* removed pr template

* Created PR Template

* Edited path for PR Temmplate

* feat: add map to each result-card

* docs: contribution gudelines, refactor readme and pr template

docs: create os-related guidelines

docs: update readme and create open-source guidelines

docs: update pr template

docs: remove header from pr template

* docs: fix broken link

* added a loading componetn

* add basic dark/light mode functionality

* Delete package-lock.json

* refactor: remove unused vars

* feat: add marker component to pinpoint location on the map

refactor: switch to react-map-gl

 WIP: feat: marker

feat: marker component to pinpoint location on map

* refactor: remove static imports

refactor: use static imports

refactor: remove static imports

* fixed conflicts 🔨

* fixed conflicts 🔨

* refactor: remove unused vars

* fixed conflicts 🔨

* fixed conflicts 🔨

* edited .env.example

* Update CONTRIBUTING.md

* fix: merge conflicts

* Update Contributing.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* fixed responsive 🔨

* fixed responsiveness 🔨

* map error 🔨

* hidden map block for mobile devices

* Added initial look for about us page

* Added no of contributors

* dynamically get contributor data

* dynamically get contributor data

* Revert "About Page Revamp"

* Added contributors list in about page

* changed order

* Added user types

* made about page responsive

* did the changes again

* added image to error message

* added extra info to the about page

* Add license scan report and status (#131)

Signed off by: fossabot <[email protected]>

* about page:darkmode compatible

* Deleted package-lock.json

* Revert "added a loading componetn"

This reverts commit 59e9212.

* reverted indentaions

* added === instead of ==

* Fixed wrong url being passed for git profiles

* fixed loading issue 🔨

* fixed loading issue 🔨

* Create codeql-analysis.yml

* Update README.md

* fixed max height of the contributors container.

* added contributors count

* added CSS for the contributor count

* responsive fix

* Added loading state in contributor section

* added links in the navbar

* added path to main app.js

* Update README.md

* fixed appResponsiveness 🔨 (#146)

* Feature: Add Whole world Vaccine Information (#145)

* added links in the navbar

* added path to main app.js

* added Seperate tabs

* renamed some files

* Added seperate file for world anf india

* Added paper for showing information

* centralised tabs

* Added css for info and fetched data

* responsive fixes

* fixed ccs

* Added cards on various info from world

* Destructured code

* responsive css

* changed paper title color

* destructered for a general view of data

* added error check

* content divided to components

* Added world covid data by continents

* Added loading before data is fetched

* Removed unecessary loading from india tab

* Enhancement: Enhanced the look for word COVID Info (#149)

* destructered for a general view of data

* added error check

* content divided to components

* Added world covid data by continents

* Added loading before data is fetched

* Removed unecessary loading from india tab

* removed unnecessary files

* Feature: Add Test Cases (#153)

* test setup completed

* add render Header test case

Because:
- checks weather components exists
- stops unnecessary errors

* click event tested, snapshot created

Because:
- better code coverage
- fix future errors

* tests folder created

* intro component tested

* home component tested

* covidInfoMain component tested

* handleTabChange test included

* about component tested

* docs updated for tests

* added test scripts in  package.json
Changes:
- snapshot script added
- coverage script added

Co-authored-by: Kunal Kumar <[email protected]>

* removed pagination from default branch (#156)

Co-authored-by: Yash <[email protected]>
Co-authored-by: Wise Introvert <[email protected]>
Co-authored-by: afif ahmed <[email protected]>
Co-authored-by: Ian Terada <[email protected]>
Co-authored-by: Ian Terada <[email protected]>
Co-authored-by: Justinnn07 <[email protected]>
Co-authored-by: Justin Varghese <[email protected]>
Co-authored-by: Yash Patil <[email protected]>
Co-authored-by: fossabot <[email protected]>
Co-authored-by: mohammed afif ahmed <[email protected]>
Co-authored-by: Kunal Kumar <[email protected]>
Co-authored-by: Kunal Kumar <[email protected]>

* removed stylecomponents

* removed stylecomponents (#162)

* Feature: Chart Added (#163)

* packages install react-chart-js-2

* chart completed

* continentChart Completed

* package-lock.json, yarn.lock deleted

* yarn.lock reverted

* header removed in chart and continentChart component

* doughnut chart implemented

* doughnut Chart for world added

* indentation improved-1

* doughnut in continentChart removed

Co-authored-by: Kunal Kumar <[email protected]>

* aremoved package lock

* updated yarn lock file

* restructured the Charts file to the Worldcovid parent folder

* Updated the about page

* restructured the Charts file to the Worldcovid parent folder (#167)

* Added Scroll to top fucntionality (#169)

Co-authored-by: Yash <[email protected]>
Co-authored-by: Wise Introvert <[email protected]>
Co-authored-by: afif ahmed <[email protected]>
Co-authored-by: Ian Terada <[email protected]>
Co-authored-by: Ian Terada <[email protected]>
Co-authored-by: Justinnn07 <[email protected]>
Co-authored-by: Justin Varghese <[email protected]>
Co-authored-by: Yash Patil <[email protected]>
Co-authored-by: fossabot <[email protected]>
Co-authored-by: mohammed afif ahmed <[email protected]>
Co-authored-by: Kunal Kumar <[email protected]>
Co-authored-by: Kunal Kumar <[email protected]>
  • Loading branch information
13 people authored Jun 20, 2021
1 parent 245ceeb commit e0d0746
Show file tree
Hide file tree
Showing 56 changed files with 5,832 additions and 3,093 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
REACT_APP_MAPBOX_ACCESS_TOKEN=<mapbox_access_token>

119 changes: 119 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# Contribution Guide

<details>
<summary>Issues</summary>
<ul>
<li>
Make sure that there are no duplicate issues by first checking the
<a
href="https://github.com/stephin007/Cowin-Vaccine-Availablity-Checker/issues"
>Issues</a
>
tab and that the issue that you've selected hasn't already been assigned or
being worked on.
</li>
<li>
The title should follow the following pattern:
<code>[TYPE] &ltshort-description&gt</code>, where <code>TYPE</code> is one
of <code>feat</code> | <code>fix</code> | <code>docs</code> |
<code>build</code> | <code>ci/cd</code>
</li>
<li>
Explain, in detail, what the issue is about and if it's a bug, add steps to
reproduce it.
</li>
</ul>
</details>

<details>
<summary>Branching</summary>
<ul>
<li>
When creating branches, please use the following pattern:
<code>type/issue-{issue-number}</code> (f.eg.: <code>feat/issue-12</code>,
<code>fix/issue-87</code>)
</li>
</ul>
</details>

<details>
<summary>Project Setup</summary>
<ul>
<li>
Fork this repo and then clone the forked repo
(<code>https://github.com/&ltyour-username&gt/Cowin-Vaccine-Availablity-Checker.git</code>)
</li>
<li>
Run either <code>yarn</code> or <code>npm install</code> inside the root
directory to install all the required dependencies(Please make sure to
remove duplicate/redundant lockfiles)
</li>
<li>
Scripts
<ul>
<li>
<code>start</code>: Run the app in the development mode. Open
http://localhost:3000 to view it in the browser. The page will reload
if you make edits. You will also see any lint errors in the console.
</li>
<li>
<code>build</code>: Builds the app for production to the
<code>build</code> folder. It correctly bundles React in production
mode and optimizes the build for the best performance. The build is
minified and the filenames include the hashes. Your app is ready to be
deployed! See the section about
<a href="https://facebook.github.io/create-react-app/docs/deployment"
>deployment</a
>
for more information.
</li>
<li>
<code>eject</code>: <br /><i
>Note: this is a one-way operation. Once you <code>eject</code>, you
can’t go back!</i
><br />If you aren’t satisfied with the build tool and configuration
choices, you can `eject` at any time. This command will remove the
single build dependency from your project. Instead, it will copy all
the configuration files and the transitive dependencies (webpack,
Babel, ESLint, etc) right into your project so you have full control
over them. All of the commands except `eject` will still work, but
they will point to the copied scripts so you can tweak them. At this
point you’re on your own. You don’t have to ever use `eject`. The
curated feature set is suitable for small and middle deployments, and
you shouldn’t feel obligated to use this feature. However we
understand that this tool wouldn’t be useful if you couldn’t customize
it when you are ready for it.
</li>
<li><code>test</code>: Run tests using Jest</li>
</ul>
</li>
</ul>
</details>

<details>
<summary>Environment Variables</summary>
<ul>
<li>
<strong>REACT_APP_MAPBOX_ACCESS_TOKEN: TO add this token , Make sure you dont delete the .env.example but make a copy and paste the it the root directory and rename it to .env and paste your token which you will get as you follow the below steps.</strong>
<ul>
<li>
Create a MapBox account by navigating to
<a href="https://account.mapbox.com/auth/signup">this link</a>
<img
src="https://user-images.githubusercontent.com/66718300/119947085-fc216e80-bfb4-11eb-9d49-322a3343d2b8.png"
alt="image"
/>
</li>
<li>
After creating and verifying the account, go to
<a href="https://accoung.mapbox.com">https://accoung.mapbox.com</a>
and copy the access token
<img
src="https://user-images.githubusercontent.com/66718300/119947810-c761e700-bfb5-11eb-8e32-23d1a535894f.png"
alt="Screenshot from 2021-05-28 13-03-08"
/>
</li>
</ul>
</li>
</ul>
</details>
24 changes: 13 additions & 11 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
Expand Down
23 changes: 23 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
> 🚨 Please review the [guidelines for contributing](../CONTRIBUTING.md) to this repository.
### Please check if the PR fulfills these requirements

- [ ] Make sure you are requesting to **NEW-UI**. Don't request other protected Branches like **staging/master**
- [ ] Make sure no conflicts are present in the code, if so please resolve it(_Tip: Always fetch upstream_)
- [ ] Your Commit messages should make sense.
- [ ] Don't push your package.lock.json as this project uses yarn.lock already.
- [ ] Check your code additions will fail neither code linting checks nor unit test.

### Describe your changes

- **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)

- **What is the current behavior?** (You can also link to an open issue here)

- **What is the new behavior (if this is a feature change)?**

- **Does this PR introduce a breaking change?** (i.e changes that may require users to update/refactor existing istances of the application)

- **Other Information**:

❤️ Thank you!
71 changes: 71 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ NEW-UI, master, staging ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ NEW-UI ]
schedule:
- cron: '45 23 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
/.pnp
.pnp.js

#IDE Files
.idea
.vscode

# testing
/coverage

Expand All @@ -17,7 +21,11 @@
.env.development.local
.env.test.local
.env.production.local
.env

npm-debug.log*
yarn-debug.log*
yarn-error.log*

.env

5 changes: 0 additions & 5 deletions .idea/.gitignore

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/Cowin-Vaccine-Availablity-Checker.iml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

14 changes: 0 additions & 14 deletions .idea/vcs.xml

This file was deleted.

22 changes: 11 additions & 11 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
Loading

1 comment on commit e0d0746

@vercel
Copy link

@vercel vercel bot commented on e0d0746 Jun 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.