Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub
Here is how to quickly get started. the README has more detailed setup instructions
- Clone the Repo
git clone [email protected]:penguin-academy/covid-19-py.git
- cd into the repo and install the dependencies
cd covid-19-py
yarn
- Start the dev server
yarn start
OR use Storybook to develop components
yarn run storybook
We are working with a .env file that makes environment variables accessible within the project. Currently only variables for Firebase are required.
-
Get the Firebase config object
Create a firebase project and get your Firebase config object from the project settings. Go to https://firebase.google.com/docs/web/setup to learn how to get your credentials.
-
Create a .env file in your project folder
-
Create the following keys
REACT_APP_apiKey=xxxxxxxxxxxx
REACT_APP_authDomain=xxxxxx.firebaseapp.com
REACT_APP_databaseURL=https://xxxxxxx.firebaseio.com
REACT_APP_projectId=xxxxxx
REACT_APP_storageBucket=xxxxxx.appspot.com
REACT_APP_messagingSenderId=xxxxxxxx
REACT_APP_appId=1:xxxxxx:web:xxxxxxx
(it is the same as your Firebase config object, just prefixd with REACT_APP_)
It is really important for us that we all are aligned in the development process. Here is a short overview of the contribution process which will help the community to develop the app.
-
We welcome contributions for all issues. Please indicate your interest to avoid two double implementations. Issues labeld as
good first issue
are those that have minimal context and are well suited for new contributors to get started on the project. -
Fork the repo
-
We are following git flow, with the following conventions (default):
-
Branch name for production releases: master
-
Branch name for "next release" development: develop
-
Feature branches? feature/
-
Release branches? release/
-
Hotfix branches? hotfix/
-
Support branches? support/
For Features:
# make sure you are branching from develop
git checkout develop
# create a new branch for enhancement
git checkout -b feature/issue-<#>
For Bugs
# make sure you are branching from master
git checkout master
# create a new branch for enhancement
git checkout -b hotfix/issue-<#>
-
Push to your fork. Write a [good commit message][http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html].
-
Submit a Pull Request to our repo to develop (if it is a feature). The pull request should explain what you did. Please make your pull requests as small and clear as possible.
Others will give constructive feedback. This is a time for discussion and improvements, and making the necessary changes will be required before we can merge the contribution.