-
-
Notifications
You must be signed in to change notification settings - Fork 2
Installation & Setup
You have two options: Download a pre-built binary (easiest) or build from source using the automated installer.
Clone the repository and run the installer script. This will automatically check for and attempt to install dependencies (Python, Node.js, pnpm), build the frontend, and start the app.
Windows
# 1. One-time setup and build
.\install.ps1
# 2. Run the application
.\run.ps1Warning
If you get an error stating that "cannot be loaded because running scripts is disabled on this system", run the script with the bypass flag:
powershell -ExecutionPolicy Bypass -File .\install.ps1
Linux / macOS
git clone https://github.com/dhruvhaldar/FOAMFlask
cd FOAMFlask
chmod +x install.sh
./install.shTip
After running the automated installer, if the uv command is not recognized, you may need to restart your terminal or add the local bin directory to your PATH:
-
Windows:
$env:USERPROFILE\.local\bin -
Linux/macOS:
~/.local/bin
If you prefer to manage the environment yourself:
- Install Prerequisites: Python 3.12+, Node.js 20+, pnpm 8+, and Docker.
-
Install Frontend:
pnpm install pnpm run build
-
Install Backend:
uv sync
Windows
# Run the application after installation
.\run.ps1Linux / macOS
uv run python -m app 2>&1 | tee app.logpkill -f "uv run python -m app"; sleep 1; uv run python -m app > app_output.log 2>&1 &Prerequisites: List required software (e.g., Python 3.x, OpenFOAM 2506 compatibility, Node.js if relevant for future frontend work).
Virtual Environment Setup: The detailed Linux and Windows instructions for venv creation and activation.
Dependency Installation: Installing requirements.txt.
Setting up OpenFOAM Root: How the application links to the local OpenFOAM installation.