GithubAPIWorkshop
Workshop for computer scinece students to learn the basics of github API
Install / Use
/learn @vharatian/GithubAPIWorkshopREADME
CS 456 GitHub API Workshop
This is a workshop for students to learn how to use GitHub API and more specific learn the following concepts.
- HTTP API -> Searching repositories
- Pagination Logic -> Fetching more repositories
- Repositories Details -> Fetching language specific information
- GraphQL -> Searching repositories and fetch details at once
- GitHUb API Wrappers -> Searching repositories using PyGithub
- Parsing Commits -> Merging authors using local and remote information
Setting up
Clone the repository.
git clone https://github.com/vharatian/GithubAPIWorkshop.git
cd GithubAPIWorkshop
Creating Virtual Environment and Install Requirements
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Configuration (Required by task 4 and 6)
Copy the config-template.py file to the config.py file.
cp config-template.py config.py
Obtain a valid github token and place it into the config.py file. Look at the GitHub Documentation for more information.
Evaluation Repository (Required by task 6)
To complete the GithubLogin task you need to clone the VueJS core repository into the repositories folder.
mkdir repositories
git clone https://github.com/vuejs/core.git repositories/core
Results
The results of each task should be placed as a JSON file in a folder named results in the directory you have launched the execution.
