Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
July 30, 2022 01:50 pm GMT

I Made a Web App to Showcase all your GitHub Projects

Introducing Projects

Present all your projects in style with a super customizable web app!

Projects uses the GitHub API to list all your GitHub projects in a nice searchable grid.
Also shows pretty programming icons using devicons.

Inspiration

Needed a way to display all my projects, used my portfolio's project section as inspiration.

Getting Projects

To get projects, follow these steps:

git clone https://github.com/2kabhishek/projectscd projects

Setup Your Own Projects

You can easily set up projects to show your own repos.

  • Fork the repo
  • Clone it
  • Open up script.js and update the username variable to your GitHub username.
  • Push your changes
  • Go to repo settings on GitHub and enable GitHub Pages.

The site should be live on https://<your-username>.github.io/projects

Here's the profile for @sindresorhus

sindresorhus's projects

Number Of Repos

The number of repos is controlled by the maxPages variable, the GitHub API supports 100 repos per page max.
If you have less than 100 repos, set maxPages to 1, if you have 300 then 3.

You can also edit the fetch query to reduce the per page repo count.

There's no pagination, all repos are shown on the same page.

Authenticated Requests

If you are working locally and notice the API is not sending over data, it might be because of rate limit on GitHub API requests.

You can either wait for an hour or setup a personal access token on GitHub and pass that into the fetch request in script.js

Viewing projects

Open index.html in your favorite browser or visit 2kabhishek.github.io/projects.

How it was built

Projects was built using HTML CSS & JavaScript.
It was built on Neovim and the python http server.
Uses GitHub API for data and Devicons for programming icons.

What I learned

  • Learned about a few quirks of the fetch API, especially implementation of maxPages.
  • Flex, box-shadow and some other CSS tricks were revisited.

What's next

Add more languages to devicons if necessary.

Hit the button if you found this useful.

GitHub logo 2KAbhishek / projects

Showcase All Your Projects

Projects

License People StarsForks Watches Last Updated

Showcase All Your Projects

projects screenshot
projects screenshot

Introducing Projects

Present all your projects in style with a super customizable web app!

Projects uses the GitHub API to list all your GitHub projects in a nice searchable gridAlso shows pretty programming icons using devicons.

Inspiration

Needed a way to display all my projects, used my portfolio's project section as inspiration.

Getting Projects

To get projects, follow these steps:

git clone https://github.com/2kabhishek/projectscd projects

Setup Your Own Projects

You can easily set up projects to show your own repos.

  • Fork the repo
  • Clone it
  • Open up script.js and update the username variable to your GitHub username.
  • Push your changes
  • Go to repo settings on GitHub and enable GitHub Pages.

The site should be live on https://<your-username>.github.io/projects

Here's the projects page for @sindresorhus

sindresorhus's projects

Number Of Repos

The number of repos is controlled by the maxPages variable, the GitHub


Original Link: https://dev.to/2kabhishek/i-made-a-web-app-to-showcase-all-your-github-projects-le3

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To