Skip to content

beyondcode/github-now

Repository files navigation

GitHub Now

Now pages for your GitHub profiles.

GitHub now allows you to dynamically update your GitHub profile. Do you want to show the Spotify song you're currently playing? Do you want to show a list of dynamic calendar entries of your next conference speaking gigs (oh well...post Corona at least)?

This app allows you to do just that. You can think of it as a personal dashboard on GitHub.

Installation

To get started, clone this repository.

git clone https://github.com/beyondcode/github-now.git

Next, copy your.env.examplefile as.envand configure your GitHub username.

GITHUB_PROFILE=your-github-username

Modifying your profile

You can modify your personal profile, by editing theresources/views/profile.blade.phpfile.

To see a preview of how your profile will look like on GitHub, simply visit the application URL. This will render your markdown file in the browser.

Pushing your profile to GitHub

This repository already has set up a scheduled command that updates your profile every 5 minutes (if there are changes, for example due to the currently played song on Spotify).

Please refer to theLaravel documentationto learn more about scheduled tasks.

To manually push your profile, you can runphp artisan github-now:update.

Updating Spotify songs

In order to automatically update the song that is currently playing on Spotify, you need to provide a Spotify developer app client-id and secret.

Sign up athttps://developer.spotify.com/dashboardand register your application to obtain these.

Next, add them to your.envfile:

SPOTIFY_CLIENT_ID=your-spotify-client-id
SPOTIFY_SECRET=your-spotify-client-secret

Once you have setup your application please go to thespotify dashboard,select your application and click "EDIT SETTINGS" in the top right. You will then need to add the following urls based on your environments to the "Redirect URIs" section and then hit save. This will allow you to authenticate and store your access token:

Redirect URI example:

https://yourdomain.com/spotify/callback

To get your own personal access token, visit the following URL in your browser:/spotify/authorize.

Linking your own Google Calendar

Please follow the installation steps of theLaravel Google Calendarpackage to link your calendar. By default all calendar event names will be redacted. To show the real event names, modify yourprofile.blade.phpfile and set:redact-nameto false.

About

Automatically generate your GitHub user profile page

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published