moleculemaker / digital-molecule-maker

Digital Molecule Maker web application for the Molecule Maker Lab Institute
MIT License
1 stars 0 forks source link

set up config loading mechanism #160

Closed GalMunGral closed 5 months ago

bodom0015 commented 5 months ago

Works as advertised :smile: :+1: LGTM!

Prerequisites:

Test Case:

  1. Checkout this branch locally
  2. Set ingress.hostname to something like hostname: dmm.proxy.localhost
  3. Set config.hostname to something like, e.g. hostname: "https://dmm.fastapi.NONSENSE.mmli1.ncsa.illinois.edu"
  4. Set controller.image to match the image from this PR, e.g. image: "moleculemaker/dmm-frontend-image:pr-160"
  5. Deploy Helm chart on your local cluster: helm upgrade --install -n mmli --create-namespace dmm-frontend . -f values.local.yaml
  6. Navigate your browser to http://dmm.proxy.localhost/assets/config/envvars.json
    • You should see the same hostname that you specified as part of step 3 above
  7. Navigate your browser to http://dmm.proxy.localhost
    • You should see DMM frontend is served by your cluster
  8. Build a molecule, click Add to Cart, open browser DevTools to Networks tab, then click "Let's Make This Thing"
    • You should see that your request in the Networks tab is being sent to https://dmm.fastapi.nonsense.mmli1.ncsa.illinois.edu :+1: