diff --git a/README.md b/README.md
index 1613a3b0..3b2ef6fd 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,13 @@
# GitHub Tracker
-Replace this readme with your own information about your project.
-
-Start by briefly describing the assignment in a sentence or two. Keep it short and to the point.
+This weeks project was about deepening our knowledge of API and also some unit testing.
## 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?
+I've had huge issues with getting my personal token to work and I must say that it has defeted me, I never managed to solve it (this time). I have never spent so much time on a single problem, but I still like the fact that I never gave in, I kept trying.
+
+If I had more time, I would make the token work :D
## 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.
+https://w7-project-github-tracker.netlify.app/
diff --git a/code/chart.js b/code/chart.js
index 92e85a30..e65d771c 100644
--- a/code/chart.js
+++ b/code/chart.js
@@ -1,4 +1,21 @@
//DOM-selector for the canvas 👇
const ctx = document.getElementById('chart').getContext('2d')
-//"Draw" the chart here 👇
+//Draws the chart and displays progress in projects finished vs left
+const drawChart = (amount) => {
+ const config = {
+ type: 'doughnut',
+ data: {
+ labels: ['Finished projects', 'Projects left'],
+ datasets: [
+ {
+ label: 'Technigo projects',
+ data: [amount, 19 - amount],
+ backgroundColor: ['rgb(63, 114, 175)', 'rgb(17, 45, 78)'],
+ },
+ ],
+ },
+ }
+
+ const myChart = new Chart(ctx, config)
+}
\ No newline at end of file
diff --git a/code/index.html b/code/index.html
index 2fb5e0ae..a67669c2 100644
--- a/code/index.html
+++ b/code/index.html
@@ -1,21 +1,25 @@
-
-
-
-
- Project GitHub Tracker
-
-
-
-
GitHub Tracker
-
Projects:
-
+
+
+
+
+ Project GitHub Tracker
+
+
+
-
-
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
\ No newline at end of file
diff --git a/code/script.js b/code/script.js
index e69de29b..cdea67a2 100644
--- a/code/script.js
+++ b/code/script.js
@@ -0,0 +1,78 @@
+// USERNAME
+let username = 'rijad90'
+// API
+const GITHUB_USER_API = `https://api.github.com/users/${username}`
+const GITHUB_REPOS_API = `https://api.github.com/users/${username}/repos`
+
+//FETCH API TO PROFILE. INJECTS PIC,USERNAME,BIO
+const getProfile = () => {
+ fetch(GITHUB_USER_API)
+ .then((res) => res.json())
+ .then((data) => {
+ profile.innerHTML += `
+
+
Github Tracker
+
+
${username}
+
${data.bio}
+
+ `
+ })
+}
+getProfile()
+
+//DOM SELECTOR
+const projects = document.getElementById('projects-container')
+//FETCH API AND FILTERS REPO. INJECTS REPO URL, NAME, DEF BRANCH, PUSHED DATE AND COMMIT
+const fetchRepo = () => {
+ fetch(GITHUB_REPOS_API)
+ .then((res) => res.json())
+ .then((data) => {
+ const technigoRepo = data.filter(
+ // FILTERS MY FORKED REPOS ONLY TO DESPLAY THE ONES NAMNED "project-"
+ (repo) => repo.name.includes('project-') && repo.fork
+ )
+
+ technigoRepo.forEach((repo) => {
+ projects.innerHTML += `
+