https://github.com/julien-r44/adoscope
🔠An elegant development assistant for your AdonisJS Application
https://github.com/julien-r44/adoscope
adonis adonisjs devtool telescope
Last synced: about 1 year ago
JSON representation
🔠An elegant development assistant for your AdonisJS Application
- Host: GitHub
- URL: https://github.com/julien-r44/adoscope
- Owner: Julien-R44
- Created: 2021-12-30T19:56:36.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-23T07:37:13.000Z (about 4 years ago)
- Last Synced: 2024-05-01T15:25:54.004Z (about 2 years ago)
- Topics: adonis, adonisjs, devtool, telescope
- Language: TypeScript
- Homepage:
- Size: 1.24 MB
- Stars: 22
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
## 🚧 Warning: WORK-IN-PROGRESS
This package is **under development** and not ready to use. I'm currently working with the core team to bring this project to life ( See [current RFC](https://github.com/adonisjs/rfcs/pull/43) ) . Most of the work has been done on Adoscope, the front-end of the application is ready, models too, we only need to develop the watchers that will retrieve the real events from Adonis.
**Currently only fake data are seeded**, and the application is currently not a package. It is a complete Adonis application but the whole thing will be exported in a package once the watchers are implemented.
# Introduction
Adoscope is basically a Laravel Telescope clone. Adoscope provides insight into the requests coming into your application, exceptions, log entries, database queries, mails, notifications, redis operations, and more. Adoscope makes a wonderful companion to your Adonis development environment.

## Prequisites
- You must have a database to store Adoscope entries. ( [Adonis Sail](http://github.com/Julien-R44/adonis-sail) allows you to create your database in 2 minutes! )
- Therefore, you must have `@adonisjs/lucid` installed and configured.
## Installation
// TODO
### Configuration
After installing Adoscope, you will find the main configuration file in `app/adoscope.ts`. Each of the configuration options has a description of its purpose.
### Data Pruning
Without pruning, the `adoscope_entries` table can accumulate records very quickly. To mitigate this, you should schedule the `adoscope:prune` Ace command to run daily. Since AdonisJS does not (yet?) have a built-in Scheduler, you can do this by using a simple cronjob, or using [adonis5-scheduler](https://github.com/reg2005/adonis5-scheduler).
By default, all entries older than 24 hours will be pruned. You may use the `hours` option when calling the command to determine how long to retain Adoscope data. For example, the following command will delete all records created over 48 hours ago:
```
node ace adoscope:prune --hours=48
```
### Authorization
// TODO
## Available Watchers
// TODO
## License
Adoscope is open-sourced software licensed under the [MIT license](https://github.com/julien-r44/adoscope/LICENSE.md).
## Thanks
Thanks to Laravel team and its awesome Ecosystem ! In case it wasn't obvious, [Laravel Telescope](https://laravel.com/docs/8.x/telescope) was a BIG inspiration for Adoscope.