README.md 885 字节
Newer Older
J
Joe Conway 已提交
1
## Tour of Heroes: Aqueduct
J
Joe Conway 已提交
2

J
Joe Conway 已提交
3
This is the companion application for the official [Aqueduct tutorial](https://aqueduct.io/docs/tut/getting-started/).
J
Joe Conway 已提交
4

J
Joe Conway 已提交
5
It has been modified from the original [AngularDart tutorial](https://webdev.dartlang.org/angular/tutorial) to make HTTP requests to the Aqueduct tutorial application running on your machine.  
J
Joe Conway 已提交
6

J
Joe Conway 已提交
7
To run this application:
J
Joe Conway 已提交
8

J
Joe Conway 已提交
9 10 11
```bash
pub serve
```
J
Joe Conway 已提交
12

J
Joe Conway 已提交
13
A Dockerfile and Kubernetes configuration file is available for deployment. To run on Google Cloud:
J
Joe Conway 已提交
14

J
Joe Conway 已提交
15
```bash
16
pub build
J
Joe Conway 已提交
17 18 19 20
docker build -t gcr.io/<your-project-name>/tour-of-heroes:latest .
gcloud docker -- push gcr.io/<your-project-name>/tour-of-heroes:latest
kubectl apply -f k8s/
```
J
Joe Conway 已提交
21

J
Joe Conway 已提交
22
This configuration file assumes your cluster has an `nginx-ingress-controller`. To run with Google Cloud Load Balancers, remove the `kubernetes.io/ingress.class: "nginx"` annotation from the Ingress resource.