Skip to content

Firebase function to handle CRUD#861

Draft
NickHu wants to merge 1 commit intomasterfrom
server
Draft

Firebase function to handle CRUD#861
NickHu wants to merge 1 commit intomasterfrom
server

Conversation

@NickHu
Copy link
Collaborator

@NickHu NickHu commented Oct 3, 2022

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 axum seems like the way to go.

To run the backend in the emulator, run either cargo make emulate-server or firebase emulators:start --only functions. If not using nix, you'll need to npm install first inside homotopy-server/js. The response can be obtained from http://localhost:5001/homotopy-io/europe-west2/api, as the emulator says.

@regular-citizen regular-citizen linked an issue Oct 3, 2022 that may be closed by this pull request
@NickHu NickHu force-pushed the master branch 11 times, most recently from bf565cf to e63d124 Compare November 12, 2022 12:56
@github-actions
Copy link
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

@calintat calintat force-pushed the master branch 2 times, most recently from 25c6a8d to 09c00e9 Compare February 7, 2024 13:55
@NickHu NickHu force-pushed the master branch 6 times, most recently from fa70da2 to 4dfe07f Compare February 19, 2024 12:59
@calintat calintat force-pushed the master branch 2 times, most recently from 8059097 to 6c94846 Compare March 7, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Project CRUD functionality

1 participant

Comments