8000 GitHub - Webklex/calmag: A simple calculator to calculate the optimal calcium and magnesium concentration for your nutrient solutions.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ calmag Public

A simple calculator to calculate the optimal calcium and magnesium concentration for your nutrient solutions.

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

Webklex/calmag

Repository files navigation

CalMag Calculator

A simple calculator to calculate the optimal calcium and magnesium concentration for your nutrient solutions. You can find a demo of the calculator here.

Releases Demo License Hits

calmag_web_gui

Table of Contents

Installation

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

Requirements

  • PHP >= 8.1
  • Composer

Docker

You can run the app using Docker for a quick and isolated setup:

Build system architecture

docker buildx build -t webklex-calmag:dev .
docker run -d -p 8000:8000 --name webklex-calmag webklex-calmag:dev

Build AMD64 architecture

AMD64 (works in general but emulating on ARM)

docker buildx build --platform linux/amd64 -t webklex-calmag:dev-amd64 .

Build ARM64 architecture

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

Configuration

All configuration files are located in the src/config directory.

Additives

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.

Fertilizers

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.

Languages

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.

Build

To build the project you can use the following command:

npm install

npm run production
npm run build:tailwind
npm run watch:tailwind

Support

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.

Change log

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email github@webklex.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

A simple calculator to calculate the optimal calcium and magnesium concentration for your nutrient solutions.

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 2

  •  
  •  
0