You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace this readme with your own information about your project.
3
+
The assignment was to build a website that holds all Technigo-projects on Github. We should fetch these by API, and using filter to display the correct ones.
4
4
5
-
Start by briefly describing the assignment in a sentence or two. Keep it short and to the point.
5
+
Furthermore the website should include some information from each repository, such as default branch and number of commit messages.
6
+
7
+
The website should also include a chart that showed how many projects was done in the Bootcamp.
6
8
7
9
## The problem
8
10
9
-
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?
11
+
I started with fetching the Github API for my user and my repositories. Then I could display my username and profile pic as well as filter out the repositories so only the forked ones marked as "project-" was displayed.
12
+
13
+
I continued with building up info about default branch etc in innerHTML. Then I fetched all pullrequests and filtered out so only my own was left by comparing "pull.user.login" with "repo.owner.login". Then I tried to display number of commits by using the commit_url, but for some reason it won't show. I will take a closer look at this and ask for help in StackOverflow.
14
+
15
+
Then I created a chart using chart.js. It went well with styling etc but when I tried to wrap it up in a function that I then called in the js-file the chart wouldn't show at all on the website. I tried different things but as for the commit-issue I will have to dig deeper on this one. Hopefully some of my classmates can help me.
16
+
17
+
For this project I used a personal API token from Github, and making it secret by using secret.js and gitignore.
18
+
19
+
Lastly I styled the webpage and made it responsive. I'm happy with the accordion and the way the flex/grid is responsive, but there's some things in the user-section that doesn't look quite right in desktop-size. I think it is because of the position: absolute and how the headers are positioned in relation to the profile pic and the chart.
10
20
11
21
## View it live
12
22
13
-
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.
0 commit comments