A simple calculator to calculate the optimal calcium and magnesium concentration for your nutrient solutions. You can find a demo of the calculator here.
1.) Clone the repository:
git clone https://github.com/webklex/calmag.git
2.) Install the dependencies:
composer install
3.) Start the development server:
php -S localhost:8000 -t public
- PHP >= 8.1
- Composer
You can run the app using Docker for a quick and isolated setup:
docker buildx build -t webklex-calmag:dev .
docker run -d -p 8000:8000 --name webklex-calmag webklex-calmag:dev
AMD64 (works in general but emulating on ARM)
docker buildx build --platform linux/amd64 -t webklex-calmag:dev-amd64 .
docker buildx build --platform linux/arm64 -t webklex-calmag:dev-arm64 .
A precompiled image maintained by @manfredsteger can be found here: https://hub.docker.com/r/manfredsteger/webklex-calmag
All configuration files are located in the src/config
directory.
The src/config/additives.php
file contains all available additives. You can add new additives or modify existing ones. Make sure to keep the array structure.
The src/config/fertilizers.php
file contains all available fertilizers. You can add new fertilizers or modify existing ones. Make sure to keep the array structure.
All language files are located in the resources/lang
directory. You can add new languages or modify existing ones. Make sure to keep structure and naming conventions - misinterpretation can lead to unexpected behavior.
The user specific language is determined by the Accept-Language
header. If the language is not available, the default language will be used.
To build the project you can use the following command:
npm install
npm run production
npm run build:tailwind
npm run watch:tailwind
If you encounter any problems or if you find a bug, please don't hesitate to create a new issue. However, please be aware that it might take some time to get an answer.
If you need immediate or commercial support, feel free to send me a mail at github@webklex.com.
Please see CHANGELOG for more information what has changed recently.
If you discover any security related issues, please email github@webklex.com instead of using the issue tracker.
- Fumu <3
- Webklex
- All Contributors
The MIT License (MIT). Please see License File for more information.