This directory contains the source code for the Beancount-import web frontend.
The web frontend communicates with a Python server (typically running on the same machine) over a websocket. The Python server also serves a copy of the frontend code.
Building the frontend requires some additional setup:
-
A recent version of Node.js is required to build the frontend. The recommended way to obtain Node.js is by installing NVM (node version manager) by following the instructions here:
-
Install a recent version of Node.js by running:
nvm install stable
You can also specify a version manually.
-
From within this directory, install the dependencies required by this project:
npm install
-
To build a development version of the frontend, run:
npm run builddev
Alternatively, you can run:
npm run builddev:watch
This watches the source tree and incrementally rebuilds as changes are made. This is the recommended command to use during development.
-
The build output is written to the (beancount_import/frontend_dist/)[../beancount_import/frontend_dist/] directory. When using the
builddev
orbuilddev:watch
commands, the frontend is built in development mode. When using thebuild
command, the frontend is built in production (minified) mode.