4d0e1a9989c136e6ea0a4b4ce5f0fe2937b621a9
- Updated navigation links in `init_db.py` to include href overrides and parent slugs for profitability, opex, and capex planners. - Modified `NavigationService` to handle child links and href overrides, ensuring proper routing when context is missing. - Adjusted scenario detail and list templates to use new route names for opex and capex forms, with legacy fallbacks. - Introduced integration tests for legacy calculation routes to ensure proper redirection and error handling. - Added tests for navigation sidebar to validate role-based access and link visibility. - Enhanced navigation sidebar tests to include calculation links and contextual URLs based on project and scenario IDs.
CalMiner
A web application to plan mining projects and estimate costs, returns and profitability.
Focuses on ore mining operations and covering parameters such as capital and operational expenditures, resource consumption, production output, and Monte Carlo simulations for risk analysis.
The system is designed to help mining companies make informed decisions by simulating various scenarios and analyzing potential outcomes based on stochastic variables.
Documentation & quickstart
- Detailed developer, architecture, and operations guides live in the companion calminer-docs repository. Please see the README there for instructions.
- For a local run, create a
.env(see.env.example), install requirements, then executepython -m scripts.init_dbfollowed byuvicorn main:app --reload. The initializer is safe to rerun and seeds demo data automatically. - To wipe and recreate the schema in development, run
CALMINER_ENV=development python -m scripts.reset_dbbefore invoking the initializer again.
Description
Languages
Python
80.5%
HTML
11.8%
CSS
4%
JavaScript
3.3%
Dockerfile
0.4%