Instantly share code, notes, and snippets.

Embed
What would you like to do?
GitHub repo project template from https://learnvanillajs.com.

Project Details

Use the GitHub API to get a list of repositories for a user and list them on a web page.

Bonus: Display the last three commits for each repository below it.

Considerations

  • How many repositories will you list? All of them, or a just the last few?
<!DOCTYPE html>
<html>
<head>
<title>Project Template</title>
<style type="text/css">
body {
margin-left: auto;
margin-right: auto;
max-width: 40em;
width: 88%;
}
</style>
</head>
<body>
<h1>GitHub Repos</h1>
<div id="app"></div>
<script>
// Project code...
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment