Skip to content

GaloyMoney/lana-bank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lana bank

to run entire stack

make dev-up # Bring the stack up
make dev-down # Bring the stack down

to run (unit) tests:

make reset-deps next-watch

to run e2e tests:

make e2e

to run the server:

make run-server

To fetch latest cala-enterprise build

  1. Auth with $ gcloud auth login

  2. Configure docker $ gcloud auth configure-docker

  3. Run $ make bump-cala-docker-image to test that image can be fetched

To update cala-enterprise schema

  1. Create a github "fine-grained token" with Content read-only permission

  2. Add token to .env file as export GITHUB_TOKEN=<token-here>

  3. Run $ direnv allow to source token

  4. Run $ make bump-cala-schema to update schema

access the frontends:

the access through the frontends needs to be proxied to oathkeeper to receive the correct Header

admin panel: http://localhost:4455/admin-panel

use email admin@galoy.io connect to http://0.0.0.0:8025/

app: http://localhost:4455/

  • if you see a cookie error, delete the cookie and reload the page (for now)

To setup BQ

ensure you have the TF_VAR_sa_creds env variable in .env

run

gcloud auth application-default login

you can verify you already have access by running

gcloud auth application-default print-access-token

commands to re-run when adding new BQ tables:

git checkout pre-merged-commit
# this is important to have the previous state before pulling
make reset-deps
git pull
make init-bq

If you are doing work that requires adding a new big query table you need to add it to ./tf/cala-setup/bq.tf