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.
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 tohttp://localhost:5175
to see the frontend. Modifying the frontend or backend functions' code should immediately take effect. See./local_runner/README.md
for details.