This example shows an basic fullstack application built with TinyWeb.
- There are two pages, one with a
todocomponent and a staticaboutpage - The
todocomponent, uses signals to demostrate how reactivity works - When the state of the application changes it sends a request to the backend that uses the tiny-http crate.
Clone this repository:
git clone https://github.com/liveduo/tinyweb-starterRun in development:
cargo runNote: Restart the server to see changes.
Deploy the example using Cloud Run with:
docker build -t tinyweb-starter .
gcloud projects list / export PROJECT_ID=$PROJECT_ID
docker tag tinyweb-starter gcr.io/$PROJECT_ID/tinyweb-starter
docker push gcr.io/$PROJECT_ID/tinyweb-starter
gcloud run deploy $PROJECT_ID --image gcr.io/$PROJECT_ID/tinyweb-starter --project $PROJECT_ID --allow-unauthenticated