-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3ff262f
Showing
1 changed file
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Tile for retrieving articles from DEV.to | ||
|
||
[![Latest Version on Packagist](https://img.shields.io/packagist/v/hi-folks/laravel-dashboard-devto-tile.svg?style=flat-square)](https://packagist.org/packages/hi-folks/laravel-dashboard-devto-tile) | ||
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/hi-folks/laravel-dashboard-devto-tile/run-tests?label=tests)](https://github.com/hi-folks/laravel-dashboard-devto-tile/actions?query=workflow%3Arun-tests+branch%3Amaster) | ||
[![Total Downloads](https://img.shields.io/packagist/dt/hi-folks/laravel-dashboard-devto-tile.svg?style=flat-square)](https://packagist.org/packages/hi-folks/laravel-dashboard-devto-tile) | ||
|
||
Tile for retrieving your articles from DEV.to. | ||
|
||
This tile can be used on [the Laravel Dashboard](https://docs.spatie.be/laravel-dashboard). | ||
|
||
|
||
## Installation | ||
|
||
You can install the package via composer: | ||
|
||
```bash | ||
composer require hi-folks/laravel-dashboard-devto-tile | ||
``` | ||
|
||
## Usage | ||
|
||
In your dashboard view you use the `livewire:devto-tile` component. | ||
|
||
```html | ||
<x-dashboard> | ||
<livewire:devto-tile position="e7:e16" /> | ||
</x-dashboard> | ||
``` | ||
|
||
## Obtain your DEV.to API KEY | ||
|
||
Go to https://dev.to/settings/account and create your API KEY. | ||
You need to store your api key in your .env file. | ||
Remember to avoid to commit .env file :) | ||
THe key for storing your api key is: DEVTO_TILE_APIKEY | ||
|
||
``` | ||
DEVTO_TILE_APIKEY="yourapikeyfromdevto" | ||
``` | ||
|
||
In config/dashboard.php please, add: | ||
``` | ||
'tiles' => [ | ||
'devto' => [ | ||
'configurations' => [ | ||
'default' => [ | ||
'api_key' => env('DEVTO_TILE_APIKEY'), | ||
], | ||
], | ||
'refresh_interval_in_seconds' => 5, | ||
], | ||
], | ||
``` | ||
|
||
## Testing | ||
|
||
``` bash | ||
composer test | ||
``` | ||
|
||
## Changelog | ||
|
||
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. | ||
|
||
## Contributing | ||
|
||
Please see [CONTRIBUTING](CONTRIBUTING.md) for details. | ||
|
||
## Security | ||
|
||
If you discover any security related issues, please email :author_email instead of using the issue tracker. | ||
|
||
## Credits | ||
|
||
- [All Contributors](../../contributors) | ||
|
||
## License | ||
|
||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information. |