編寫 HTTP 伺服器
Here are some resources for writing servers using Dart:
- Documentation
- Using Google Cloud has information on Google Cloud products that Dart servers can use, such as Cloud Run.
- Using Google APIs points to resources to help you use Firebase and Google client APIs from a Dart app.
- Samples
- A simple Dart HTTP server
- Uses the
shelf
package. - Also uses the
shelf_router
andshelf_static
packages. - Is deployable on Cloud Run.
- Uses the
- A Dart HTTP server that uses Cloud Firestore
- Uses the Cloud Firestore features in the
googleapis
package. - Also uses the
googleapis_auth
,shelf
, andshelf_router
packages. - Is deployable on Cloud Run.
- Uses the Cloud Firestore features in the
- A simple Dart HTTP server