๐ฆ Host Installation (Pipenv)
Install LibreFolio on your machine without Docker, with Python, Node.js and Pipenv: handy with few resources, and the first step towards a development environment.
For Docker, see the User Manual Installation or the Advanced Docker Guide.
โ Prerequisites
Install these three tools first.
๐ Python 3.13
The version set in the project's Pipfile.
- macOS, with Homebrew:
- Windows: download the installer from python.org and check "Add Python to PATH".
- Linux (Ubuntu/Debian):
๐ฆ Node.js 24+
Builds the web interface.
- macOS, with Homebrew:
- Windows/Linux: with nvm (Linux/macOS) or nvm-windows (Windows), or download from nodejs.org.
๐ Pipenv
Manages the Python virtual environment and its packages.
- All platforms:
Add the user binaries folder (
~/.local/binon Linux/macOS,%APPDATA%\Pythonon Windows) to the shell'sPATH.
๐ Setup Instructions
Commands run in the Pipenv environment
The dev.py commands start with pipenv run, which runs them in the project's virtual environment.
Or enter it once with pipenv shell, then type ./dev.py โฆ without the prefix.
๐ฅ 1. Download the Project
Where: terminal, in the folder where you want the project.
Result: the LibreFolio/ folder. Or download and unzip the latest release from GitHub Releases.
๐ 2. Create the Python Environment
Where: terminal, LibreFolio/ folder.
Result: the virtual environment with the Python packages. Do this before any dev.py command: without it, it stops with ModuleNotFoundError.
๐ฆ 3. Install the Other Dependencies
Where: terminal, LibreFolio/ folder.
Result, in order:
- the Python packages again (
pipenv install --dev); - the project tools (
npm ci); - the web interface dependencies (
npm ciinfrontend/); - the Chromium browser of Playwright, for the end-to-end tests and the documentation screenshots. If only this download fails, the installation still completes.
โ๏ธ 4. Configure the Environment
Where: terminal, LibreFolio/ folder; then the .env file just created.
Result: the .env file with defaults that work as they are. The main variables:
| Variable | Default | Description |
|---|---|---|
PORT |
6040 |
Server bind port. |
LIBREFOLIO_DATA_DIR |
./backend/data/prod |
Directory of the database, uploaded files and logs (see Filesystem Structure). |
LOG_LEVEL |
INFO |
Logging verbosity. |
The other variables: Environment Variables Guide.
๐ 5. Start the Server
Where: terminal, LibreFolio/ folder.
Result: LibreFolio answers on http://localhost:6040. The first start builds the web interface and the documentation: a few minutes. Workers, another port, the other options: Command-Line Tools.
๐ค 6. Create Your Account
Where: browser, http://localhost:6040, link Register here below the login form.
Result: the first account registered becomes the administrator. To manage users from the terminal, see Command-Line Tools. To have LibreFolio create the administrator at its first start, see The Initial Administrator.
๐๏ธ Database Initialization & Reset
There is nothing to initialise: at every start the server creates the database if it is missing and applies the pending migrations.
To start again from an empty database, use one of the two ways below.
All data is lost
Both ways delete the database for good: users, brokers, transactions and settings. Make a backup first (see Backup).
๐งน With dev.py
Where: terminal, LibreFolio/ folder, with the server stopped (the command refuses to run while the server is up).
Result: a new, empty database.
๐๏ธ By Hand
Where: the data directory, by default backend/data/prod/.
- Stop the server if it is running.
- Delete the SQLite database file, by default
backend/data/prod/sqlite/app.db. - Start the server: it creates a new one.
Both ways replace only the database: uploaded files, broker reports and logs stay in the data directory. For a completely fresh start, stop the server and delete the whole data directory: the next start recreates it.