Giter Site home page Giter Site logo

stevenferrer / kalupi Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 2.0 120 KB

A wallet service built with go-kit

License: MIT License

Makefile 1.08% Go 98.65% Dockerfile 0.27%
wallet wallet-service go-kit double-entry double-entry-accounting go golang postgresql

kalupi's Introduction

GoDoc Reference Github Actions Coverage Status Go Report Card

Kalupi

Kalupi, a wallet service built with go-kit.

Features

Limitations

  • Only payments within the same currency is supported
  • Only USD is supported, other currencies can be supported with relative ease

Documentation

The REST API documentation is located at docs/api.md.

Build

Build the server:

$ go build -v -ldflags "-w -s" -o ./cmd/kalupi ./cmd/kalupi

Run the server:

$ DSN=<postgres connection string> ./cmd/kalupi

Docker

The container image is hosted on docker hub.

Run using docker:

$ docker run -p 8000:8000 \
	-e DSN=<postgres connection string> \
	stevenferrer/kalupi:0.1.0-rc1

Development

Requirements:

Clone the repository:

$ git clone [email protected]:sf9v/kalupi.git

Setup test database:

$ docker run --name kalupi-test-db \
	-d --rm -p 5432:5432 \
	-e POSTGRES_PASSWORD=postgres \
	postgres:12

Run the tests:

$ go test -v -cover -race ./...

Shoulders of the giants

The double-entry accounting implementation in this project is heavily based on the ideas of PerformanceDBA and deserves most of the credit.

Contributing

All contributions are welcome! Please feel free to open an issue or make a pull request.

License

MIT

kalupi's People

Contributors

stevenferrer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

niiniyare reebot

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.