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
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.
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
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.)