sunb26 / xat

Multi-Modal App targeted to small/med businesses to scan receipts and invoices images for auto tax filing
0 stars 0 forks source link

xat

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

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