A small web app for generating a synthetic forest in a database and running simple selective-logging scenarios. You pick a minimum cutting diameter (regimes 45–60 cm), and the app works out volumes, which trees are cut, rough damage from felling, and a simple 30-year growth step, then shows stand tables and charts.
It was built to run locally on XAMPP (Apache, PHP, MySQL), not as a public website.
- XAMPP or similar (PHP 8+, MySQL).
- A MySQL database named
tree(or change it) with the tables the project uses. There is no full SQL dump in this repo. I used a database set up for the assignment.
- Put the folder under
htdocs(or your web root). - Create the database and tables, or restore from a dump if you have one.
- Copy
.env.exampleto.envand setDB_HOST,DB_USER,DB_PASSWORD, andDB_NAME. If you skip.env, it defaults tolocalhost,root, empty password, and databasetree. - In the browser, open something like
http://localhost/forestory/index.html, then use Generate New Forest and Select Regime from the menu.
.env— your local database settings (not committed)..env.example— example only.config/env.phpandconfig/database.php— load.envand open the MySQL connection.
MIT. Built by dxisoon.