krishnanlab / geneplexus-app-v2

GenePlexus App - backend (cloud functions) and frontend
https://gene-plexus.netlify.app/
2 stars 0 forks source link

Local Function Runner #19

Closed falquaddoomi closed 5 months ago

falquaddoomi commented 5 months ago

This PR adds a mechanism for testing cloud functions locally via Google's functions-framework package. This should allow us to more rapidly develop the functions without having to deploy them to production each time. As a convenience, it also launches the frontend and directs it to use the local functions rather than the production ones.

Assuming you have Docker installed, you can run it quickly by executing run_local.sh in the project root; I'm happy to relocate this script somewhere less visible if you all prefer. Once you execute it and it's launched, you should be able to browse to http://localhost:5175 to see the frontend. Modifying the frontend or backend functions' code should immediately take effect. See ./local_runner/README.md for details.

netlify[bot] commented 5 months ago

Deploy Preview for gene-plexus canceled.

Name Link
Latest commit 6d777991a89a50d4e4007380e730f413012e3ac9
Latest deploy log https://app.netlify.com/sites/gene-plexus/deploys/6614496914e8be0007823252