Conversation
bf565cf to
e63d124
Compare
Contributor
|
Visit the preview URL for this PR (updated for commit 04c42ec): https://homotopy-rs--homotopy-io-server-8rzj8ryx.web.app (expires Wed, 14 Dec 2022 12:57:14 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 05ce40f0d298ddcee3705e1ffae42ac186395bf7 |
25c6a8d to
09c00e9
Compare
fa70da2 to
4dfe07f
Compare
8059097 to
6c94846
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've made a start on implementing the Firebase function we'll need (acting as our backend) for create, read, update, delete operations. I had thought that this would need to be written in JavaScript, but as the Firebase functions runner uses the node runtime that means we can write it in Rust compiled to WASM 🎉. Not all that many HTTP server libraries actually manage to compile to WASM, so
axumseems like the way to go.To run the backend in the emulator, run either
cargo make emulate-serverorfirebase emulators:start --only functions. If not using nix, you'll need tonpm installfirst insidehomotopy-server/js. The response can be obtained from http://localhost:5001/homotopy-io/europe-west2/api, as the emulator says.