2021-01-20 14:35:24 +11:00
# My idlers
2022-05-16 21:35:33 +10:00
A web app for displaying, organizing and storing information about servers (VPS), shared & reseller hosting, seed boxes, domains,
2022-03-06 02:22:28 +11:00
DNS and misc services.
Despite what the name infers this self hosted web app isn't just for storing idling server information. By using
a [YABs ](https://github.com/masonr/yet-another-bench-script ) output you can get disk & network speed values along with
GeekBench 5 scores to do easier comparing and sorting.
2021-01-20 14:35:24 +11:00
2022-07-19 15:26:25 +10:00
[](https://shields.io/) [](https://shields.io/) [](https://shields.io/) [](https://shields.io/)
2022-03-06 21:29:06 +11:00
2022-05-22 13:35:32 +10:00
< img src = "https://raw.githubusercontent.com/cp6/my-idlers/main/public/My%20Idlers%20logo.jpg" width = "128" height = "128" / >
2022-05-22 13:32:22 +10:00
2022-05-22 13:35:32 +10:00
[Demo site ](https://demo.myidlers.com/ )
2022-06-01 23:37:23 +10:00
**Note:** Create, Update and Delete are disabled on demo site.
2022-05-16 23:14:20 +10:00
2022-03-06 21:29:06 +11:00
## Project sponsor
2022-02-04 23:50:18 +11:00
2022-03-06 21:29:06 +11:00
[Cloud Five Limited ](https://cloud-v.net/ ) for providing the hosting for demo installation.
2021-08-19 17:24:28 +10:00
2022-07-19 15:26:25 +10:00
## 2.1.2 changes (19th July 2022):
* Added YABs compare page
* Added caching for YABs
* Added LabelsAssigned model
* Updated Server model to use relationships
* Updated Shared model to use relationships
* Updated Shared model to use caching
* Updated Table model to have table name defined
* Fixed server compare initial selection
* Fixed switch in getIpForDomain()
2021-01-20 14:35:24 +11:00
2021-01-20 14:55:09 +11:00
## Requires
2021-01-20 14:35:24 +11:00
2022-06-19 21:27:34 +10:00
* PHP 8.1
2021-01-20 14:35:24 +11:00
2021-01-20 14:55:09 +11:00
## Features
2022-03-06 02:22:28 +11:00
2021-01-20 14:35:24 +11:00
* Add servers
* Add shared hosting
* Add domains
2021-01-29 11:42:44 +11:00
* [Auto get IP's from hostname ](https://cdn.write.corbpie.com/wp-content/uploads/2021/01/my-idlers-self-hosted-server-domain-information-ips-from-hostname.gif )
* [Check up/down status ](https://cdn.write.corbpie.com/wp-content/uploads/2021/01/my-idlers-self-hosted-server-domain-information-ping-up-feature.gif )
2021-01-20 14:35:24 +11:00
* Get YABs data from output
2021-02-07 01:28:39 +11:00
* Compare 2 servers
2021-01-20 14:35:24 +11:00
* Save & view YABs output
2021-01-29 11:42:44 +11:00
* Update YABs disk & network results
2021-01-20 14:35:24 +11:00
* Next due date system
* Multi currency compatibility
* Multi payment-term compatibility
* Pre-defined operating systems
2021-01-31 12:46:46 +11:00
* Assign labels
2021-01-20 14:35:24 +11:00
* Assign server type (KVM, OVZ, LXC & dedi)
* Easy to edit values
2021-01-20 14:55:09 +11:00
## Install
2021-01-20 14:35:24 +11:00
2022-03-06 13:03:59 +11:00
* Run `git clone https://github.com/cp6/my-idlers.git` into your directory of choice
2022-03-06 02:22:28 +11:00
* Run `composer install`
* Run `cp .env.example .env`
* Edit (If needed) MySQL details in .env
* Run `php artisan key:generate`
* Run `php artisan make:database my_idlers` to create database
* Run `php artisan migrate:fresh --seed` to create tables and seed data
* Run `php artisan serve`
2021-01-31 12:46:46 +11:00
2022-05-16 16:46:08 +10:00
## Update
If you have at least version 2.0 installed:
* Run `git clone https://github.com/cp6/my-idlers.git`
* Run `composer install`
* Run `php artisan migrate`
2022-03-14 06:19:11 +00:00
## Run using Docker
2022-05-16 16:46:08 +10:00
2022-03-14 06:19:11 +00:00
```
docker run \
-p 8000:8000\
-e APP_URL=https://... \
-e DB_HOST=... \
-e DB_DATABASE=... \
-e DB_USERNAME=... \
-e DB_PASSWORD=... \
2022-05-17 16:31:27 +04:00
ghcr.io/cp6/my-idlers:latest
2022-03-14 06:51:41 +00:00
docker exec ... php artisan migrate:fresh --seed --force # Set up database one time
2022-03-14 06:19:11 +00:00
```
2022-05-17 16:31:27 +04:00
## Managed Hosting
Run with a single click on [PikaPods.com ](https://www.pikapods.com/ )
[](https://www.pikapods.com/pods?run=my-idlers)
2022-03-06 02:22:28 +11:00
## API endpoints
2021-01-20 14:35:24 +11:00
2022-03-06 02:22:28 +11:00
For GET requests the header must have `Accept: application/json` and your API token (found at `/account` )
2021-01-20 14:35:24 +11:00
2022-03-06 02:22:28 +11:00
`Authorization : Bearer API_TOKEN_HERE`
2021-01-20 14:55:09 +11:00
2022-03-06 02:22:28 +11:00
All API requests must be appended with `api/` e.g `mydomain.com/api/servers/gYk8J0a7`
2021-01-20 14:55:09 +11:00
2022-03-06 02:22:28 +11:00
**GET request:**
2021-01-20 14:55:09 +11:00
2022-03-06 02:22:28 +11:00
`dns/`
`dns/{id}`
`domains/`
`domains/{id}`
`servers`
`servers/{id}`
`labels/`
`labels/{id}`
`locations/`
`locations/{id}`
`misc/`
`misc/{id}`
2021-01-20 14:55:09 +11:00
2022-03-06 02:22:28 +11:00
`networkSpeeds/`
2021-01-20 14:35:24 +11:00
2022-03-06 02:22:28 +11:00
`networkSpeeds/{id}`
2021-01-20 14:35:24 +11:00
2022-03-06 02:22:28 +11:00
`os/`
2021-01-20 14:35:24 +11:00
2022-03-06 02:22:28 +11:00
`os/{id}`
2021-01-20 14:35:24 +11:00
2022-03-06 02:22:28 +11:00
`pricing/`
2021-01-20 14:41:37 +11:00
2022-03-06 02:22:28 +11:00
`pricing/{id}`
2021-01-20 14:35:24 +11:00
2022-03-06 02:22:28 +11:00
`providers/`
2021-01-20 14:41:37 +11:00
2022-03-06 02:22:28 +11:00
`providers/{id}`
2021-01-20 14:35:24 +11:00
2022-03-06 02:22:28 +11:00
`reseller/`
2021-01-20 14:41:37 +11:00
2022-03-06 02:22:28 +11:00
`reseller/{id}`
2021-01-20 14:35:24 +11:00
2022-05-16 16:46:08 +10:00
`seedbox/`
`seedbox/{id}`
2022-03-06 02:22:28 +11:00
`settings/`
`shared/`
`shared/{id}`
2022-06-19 14:56:19 +10:00
**POST requests**
Create a server
`/servers`
Body content template
```json
{
"active": 1,
"show_public": 0,
"hostname": "test.domain.com",
"ns1": "ns1",
"ns2": "ns2",
"server_type": 1,
"os_id": 2,
"provider_id": 10,
"location_id": 15,
"ssh_port": 22,
"bandwidth": 2000,
"ram": 2024,
"ram_type": "MB",
"ram_as_mb": 2024,
"disk": 30,
"disk_type": "GB",
"disk_as_gb": 30,
"cpu": 2,
"has_yabs": 0,
"was_promo": 1,
"ip1": "127.0.0.1",
"ip2": null,
"owned_since": "2022-01-01",
"currency": "USD",
"price": 4.00,
"payment_term": 1,
"as_usd": 4.00,
"usd_per_month": 4.00,
"next_due_date": "2022-02-01"
}
```
2022-06-19 21:27:34 +10:00
**PUT requests**
Update a server
`/servers/ID`
Body content template
```json
{
"active": 1,
"show_public": 0,
"hostname": "test.domain.com",
"ns1": "ns1",
"ns2": "ns2",
"server_type": 1,
"os_id": 2,
"provider_id": 10,
"location_id": 15,
"ssh_port": 22,
"bandwidth": 2000,
"ram": 2024,
"ram_type": "MB",
"ram_as_mb": 2024,
"disk": 30,
"disk_type": "GB",
"disk_as_gb": 30,
"cpu": 2,
"has_yabs": 0,
"was_promo": 1,
"owned_since": "2022-01-01"
}
```
Update pricing
`/pricing/ID`
Body content template
```json
{
"price": 10.50,
"currency": "USD",
"term" : 1
}
```
**DELETE requests**
Delete a server
`/servers/ID`
2022-03-06 02:22:28 +11:00
## Notes
**Public viewable listings**
If enabled the public viewable table for your server listings is at `/servers/public`
You can configure what you want viewable at ```/settings` ``
**Due date / due soon**
This is simply just a reminder. If the homepage is requested (viewed) when a service is over due date it will get reset
to plus the term from the old due date.
E.g if the term is a month then the due date gets updated to be 1 month from the old due date.
**Supporting YABS commands:**
```curl -sL yabs.sh | bash` ``
or
```curl -sL yabs.sh | bash -s -- -r` ``
**Make sure YABs output starts at the first line which is:**
```# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #` ``
2021-01-20 14:41:37 +11:00
2022-05-22 13:32:22 +10:00
Logo icons created by Freepik - Flaticon
2022-03-06 02:22:28 +11:00
## Screenshots for v2
2021-01-29 11:42:44 +11:00
2022-03-09 13:18:30 +11:00
[](https://cdn.write.corbpie.com/wp-content/uploads/2022/03/My-idlers-v2-home-2.jpg)
2021-01-20 14:41:37 +11:00
2022-03-09 13:18:30 +11:00
[](https://cdn.write.corbpie.com/wp-content/uploads/2022/03/My-idlers-v2-server-view.jpg)
2021-01-20 14:35:24 +11:00
2022-03-09 13:18:30 +11:00
[](https://cdn.write.corbpie.com/wp-content/uploads/2022/03/My-idlers-v2-servers-home.jpg)
2021-01-20 14:41:37 +11:00
2022-03-09 13:18:30 +11:00
[](https://cdn.write.corbpie.com/wp-content/uploads/2022/03/My-idlers-v2-YABs.jpg)
2021-01-20 14:35:24 +11:00
2022-03-09 13:18:30 +11:00
[](https://cdn.write.corbpie.com/wp-content/uploads/2022/03/My-idlers-v2-add-server_2.png)
2021-01-29 11:42:44 +11:00
2022-03-09 13:18:30 +11:00
[](https://cdn.write.corbpie.com/wp-content/uploads/2022/03/My-idlers-v2-servers-compare.jpg)
2021-01-29 11:42:44 +11:00
2022-03-09 13:18:30 +11:00
[](https://cdn.write.corbpie.com/wp-content/uploads/2022/03/My-idlers-v2-Ips.jpg)
2021-01-29 11:42:44 +11:00
2022-03-09 13:18:30 +11:00
[](https://cdn.write.corbpie.com/wp-content/uploads/2022/03/My-idlers-v2-labels.jpg)