Karoline Mann
+diff --git a/README.md b/README.md index 1613a3b0..5926e6fd 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,8 @@ # GitHub Tracker +The project was to create a place to keep track of the GitHub repos that I'm using at Technigo Boot Camp. For this project I continued practicing my JavaScript and API skills. -Replace this readme with your own information about your project. +# The problem +I decided to make the site look similar to my real GitHub site. The first part of fetching my repositories and my user info was pretty straight-forward. However, there were some tricky parts and some new solutions to learn as well, for example how to get the pull requests/commit messages. During this project I also learnt about dynamic ID's and the difference between 'find' and 'filter' when fetching data. If I had more time I would have liked to dive deeper into the API and fetch more data, for example languages. -Start by briefly describing the assignment in a sentence or two. Keep it short and to the point. - -## The problem - -Describe how you approached to problem, and what tools and techniques you used to solve it. How did you plan? What technologies did you use? If you had more time, what would be next? - -## View it live - -Every project should be deployed somewhere. Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about. +# View it live +https://kaliine-github-tracker.netlify.app/ diff --git a/code/README.md b/code/README.md new file mode 100644 index 00000000..88d65484 --- /dev/null +++ b/code/README.md @@ -0,0 +1,13 @@ +# GitHub Tracker +The project was to create a place to keep track of the GitHub repos that I'm using at Technigo Boot Camp. For this project I continued practicing my JavaScript and API skills. + + +## The problem +I started the project after going through all the study material. And I decided to make the site look similar to my real GitHub site. The first part of fetching my repositories and my user info was pretty straight-forward. However, there were some tricky parts and some new solutions to learn as well. The code coachers lectures for this project were very helpful and helped me solved the parts where I got stuck, for example how to get the pull requests/commit messages. From the lectures I also learned about dynamic ID's and the difference between 'find' and 'filter' when fetching data. +If I had more time I would have liked to dive deeper into the API and fetch more data, for example languages. + +## View it live +https://kaliine-github-tracker.netlify.app/ + + + diff --git a/code/chart.js b/code/chart.js index 92e85a30..4a3b38d2 100644 --- a/code/chart.js +++ b/code/chart.js @@ -2,3 +2,33 @@ const ctx = document.getElementById('chart').getContext('2d') //"Draw" the chart here 👇 + +//Invoke the drawChart function to connect the two JS files +const drawChart = (amount) => { + +const config = { + type: 'doughnut', + data: { + labels: [ + 'Projects completed', + 'Projects left', + ], + + datasets: [{ + label: 'My First Dataset', + data: [amount, 20-amount], + backgroundColor: [ + 'rgb(255, 153, 51)', + 'rgb(65, 132, 228)' + ], + hoverOffset: 4 + }] + }, + }; + + + //Present the chart in the browser +const myChart = new Chart(ctx, config) +} + +//'rgb(205, 217, 229)' white/greyish color for label text \ No newline at end of file diff --git a/code/github-logo.png b/code/github-logo.png new file mode 100644 index 00000000..fd85a5b2 Binary files /dev/null and b/code/github-logo.png differ diff --git a/code/index.html b/code/index.html index 2fb5e0ae..cfa405b5 100644 --- a/code/index.html +++ b/code/index.html @@ -4,18 +4,46 @@ -
+ Karoline Mann
+