daniels/fuellogger-project

fuel price monitor provides a web dashboard and a configurable update notifier

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:Shell

Type:project

0.1.0 2022-04-06 19:54 UTC

This package is auto-updated.

Last update: 2024-04-15 15:39:13 UTC


README

Make sure that Composer is available.

Create the project with this command:

composer create-project daniels/fuellogger-project mypath dev-main

Create and complete the .env file from the template .env.example.

./vendor/bin/doctrine-migrations migrations:migrate --configuration ./src/Migrations/migrations.php --db-configuration ./src/Migrations/migrations_db.php

Set up Basic Auth password protection for the entire root directory. Required files and folders are excluded from Basic Auth per default.

Then install the following cronjobs:

from these shell calls

/.../bin/fuelPricesCron  (recommended interval of 7 minutes)
/.../bin/oilPricesCron   (recommended interval of 24 hours)

or alternatively via these public URLs (use Basic Auth credentials)

https://my.url.dev/Public/fuelPricesCron.php   (recommended interval of 7 minutes)
https://my.url.dev/Public/oilPricesCron.php    (recommended interval of 24 hours)

Set your domain document root to the src directory.