Skip to content
/ xat Public

Multi-Modal App targeted to small/med businesses to scan receipts and invoices images for auto tax filing

Notifications You must be signed in to change notification settings

sunb26/xat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xat

  • GST/HST calculator
  • upload receipts
  • sum up HST across all the receipts
  • subtract the expense hst from the revenue hst

Tax Form: https://www.canada.ca/content/dam/cra-arc/migration/cra-arc/tx/bsnss/tpcs/gst-tps/bspsbch/rtrns/wrkngcp-eng.pdf

run

MacOS

  1. install aspect build tool here
  2. generate build files bazel run //:gazelle
  3. inspect generated build files git diff
  4. commit generated build files
  5. select a target to run (e.g. in //:BUILD.bazel there is :xat_go)
  6. run the target bazel run //:xat_go

Linux

  1. Install bazelisk as a wrapper for bazel cli here.
  2. The rest follows from MacOS setup:
    • generate build files bazel run //:gazelle
    • inspect generated build files git diff
    • commit generated build files
    • select a target to run (e.g. in //:BUILD.bazel there is :xat_go)
    • run the target bazel run //:xat_go

deploy

fly auth login
podman init
podman start
podman login registry.fly.io -u x --password $(fly auth token) \
  --authfile ~/.docker/config.json
bazel run //cmd/serve:push --config=deploy
fly deploy --config cmd/serve/fly.toml

go

  • avoid using your local go toolchain as it may lead to incompatibility
  • use the builtin toolchain instead bazel run @rules_go//go as a replacement for go
  • see guide for adding dependencies and managing go.mod

rust

  • enable rust-analyzer LSP support by generating rust-project.json
    bazel run @rules_rust//tools/rust_analyzer:gen_rust_project
  • run hello world binary bazel run //:xat_rust

python

dependencies

  1. declare dependencies in requirements.in
  2. compile lockfile requirements.txt with bazel run //:requirements.update
  3. patch lockfile requirements.patched.txt with bazel run//:requirements.patch

About

Multi-Modal App targeted to small/med businesses to scan receipts and invoices images for auto tax filing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •