Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.29 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.29 KB

indabom

A simple bill of materials web app using django-bom.

  • Master parts list with indented bill of materials
  • Octopart price matching
  • BOM Cost reporting, with sourcing recommendations

Stripe

To sync models, call python manage.py djstripe_sync_models Need to use 2.4.1 due to this issue Test stripe using this card info.

MacOS Install

If issues installing mysqlclient on Apple Silicon MacOS try:

$ export MYSQLCLIENT_LDFLAGS=$(pkg-config --libs mysqlclient)
$ export MYSQLCLIENT_CFLAGS=$(pkg-config --cflags mysqlclient)
$ pip install mysqlclient

Deploying

Secrets are managed through GCP Secret Manager. To update secrets for a respective environment run:

gcloud secrets versions add django_settings_dev --data-file=.env.dev
gcloud secrets versions add django_settings --data-file=.env.prod

Build and deploy is run automagically using GCP Cloud Build. (We tried github actions, but had trouble finding a way to run management commands thru cloud run on github actions.)