Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-butti committed Jun 4, 2020
0 parents commit 3ff262f
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions README.md
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.

0 comments on commit 3ff262f

Please sign in to comment.