Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beyondcode/github-now
Automatically generate your GitHub user profile page
https://github.com/beyondcode/github-now
calendar github nowplaying
Last synced: about 1 month ago
JSON representation
Automatically generate your GitHub user profile page
- Host: GitHub
- URL: https://github.com/beyondcode/github-now
- Owner: beyondcode
- License: mit
- Created: 2020-07-09T12:53:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-09T13:49:52.000Z (over 4 years ago)
- Last Synced: 2024-11-04T02:32:48.315Z (about 2 months ago)
- Topics: calendar, github, nowplaying
- Language: PHP
- Homepage:
- Size: 159 KB
- Stars: 147
- Watchers: 4
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- AwesomeGithubProfileTemplates - GitHub Now - Now pages for your README, Laravel app with support for Spotify and Google Calendar (Resources / Tools)
README
# 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)?![](https://pociot.dev/github-now/example.png)
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.example` file as `.env` and configure your GitHub username.
```
GITHUB_PROFILE=your-github-username
```## Modifying your profile
You can modify your personal profile, by editing the `resources/views/profile.blade.php` file.
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 the [Laravel documentation](https://laravel.com/docs/7.x/scheduling) to learn more about scheduled tasks.
To manually push your profile, you can run `php 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 at https://developer.spotify.com/dashboard and register your application to obtain these.
Next, add them to your `.env` file:
```
SPOTIFY_CLIENT_ID=your-spotify-client-id
SPOTIFY_SECRET=your-spotify-client-secret
```Once you have setup your application please go to the [spotify dashboard](https://developer.spotify.com/dashboard/applications), 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:
```bash
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 the [Laravel Google Calendar](https://github.com/spatie/laravel-google-calendar#installation) package to link your calendar.
By default all calendar event names will be redacted. To show the real event names, modify your `profile.blade.php` file and set `:redact-name` to false.