The Cyprus Electricity Calculator is a web application that allows users to calculate the cost of electricity in Cyprus. The application is built using the Laravel PHP framework.
There are two ways to get information about electricity costs.
- Use the calculator available on the web interface.
- Access the information via the API.
There is a filament based administration interface that allows the management of the tariffs and prices used by the application to perform the calculations.
You can see a live version of the application at https://electricity-calculator.cy/
This is a standard Laravel application. The following steps should be sufficient to get the application up and running. You will need to have a database setup and the relevant credentials available.
- Clone the repository
- Run
composer install
- Run
npm install
- Copy the
.env.example
file to.env
and customise - Run
php artisan migrate
- Run
php artisan serve
- run
npm run dev
Please note that the registration of new users is disabled by default. To enable this you will need to uncomment the relevant code in the routes/auth.php
file (lines 15-18).
The Cyprus Electricity Calculator is open-sourced software licensed under the MIT license.