Giter Site home page Giter Site logo

fava-git-server's Introduction

Fava Server with Git Backend

This project runs a beancount fava server backed by a git repository with support for bidirectional source updates. The server can fetch updates on trigger from webhook (loading changes from local development)

Usage

Build the container

docker build -t local/fava .

Run to manage a pre-fetched clone on default listening ports

docker run -d -p 5000:5000 -p 5001:5001 \
    -v $HOME/.ssh:/root/.ssh:ro \
    -v $PWD:/data \
    -e GIT_NAME="Fava" \
    -e GIT_EMAIL="[email protected]" \
    -e BEAN_FILE=main.beancount \
    local/fava

To trigger fava updates on push to the upstream repository, create a webook for push events pointing to the server at WEBHOOK_PORT. For a local test, you can use curl:

curl -XPOST localhost:5001

Environment Variables

# Path where your source should be mounted (or will be cloned)
REPOSITORY_ROOT=/data
# relative to repo root, optional file argument for fava
BEAN_FILE=main.bean

# Listening Ports
FAVA_PORT=5000     # Default port on which fava listens

# Git authentication
GIT_REPO      # Repository to clone (if not already mounted at REPOSITORY_ROOT)
GIT_USER      # Username for git if using HTTP auth
GIT_PASSWORD  # Password for git if using HTTP auth
SSH_KEY       # SSH private key for git if using SSH auth

fava-git-server's People

Contributors

pwalkr avatar

Stargazers

Hunter Haugen avatar flywhale avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

hunner

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.