You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Docker repository with the GraphQL API Server can be found here: https://hub.docker.com/r/rm3l/dev-feed-api
40
+
41
+
To fetch the docker image, run:
42
+
43
+
```bash
44
+
docker image pull rm3l/dev-feed-api
45
+
```
46
+
47
+
To run the server with the default options and expose it on port 8080:
48
+
49
+
```bash
50
+
docker container run --rm -p 8080:8080 rm3l/dev-feed-api
39
51
```
40
52
41
-
2. Build the Backend
53
+
You can then access the GraphiQL browser by heading to http://localhost:8080/graphiql
54
+
55
+
##### Kubernetes
56
+
57
+
The Backend API is also published to [my Helm Charts repository](https://helm-charts.rm3l.org/), so as to be deployable to a Kubernetes Cluster using [Helm](https://helm.sh/).
58
+
59
+
It is listed on Artifact Hub : https://artifacthub.io/packages/helm/rm3l/dev-feed
60
+
61
+
```bash
62
+
$ helm repo add rm3l https://helm-charts.rm3l.org
63
+
$ helm install my-dev-feed rm3l/dev-feed
64
+
```
65
+
66
+
See https://artifacthub.io/packages/helm/rm3l/dev-feed or https://github.com/rm3l/helm-charts/blob/main/charts/dev-feed/README.md for
67
+
all customizable values.
68
+
69
+
You can then access the GraphiQL browser by heading to http://localhost:8080/graphiql
You can then access the GraphiQL browser by heading to http://localhost:8080/graphiql
54
86
55
-
4. Install Flutter by following the instructions on the [official website](https://flutter.dev/docs/get-started/install)
87
+
#### Using the Mobile application
88
+
89
+
1. Install Flutter by following the instructions on the [official website](https://flutter.dev/docs/get-started/install)
56
90
57
-
5. Prepare the configuration environment
91
+
2. Prepare the configuration environment
58
92
59
93
Skip this to use the default Heroku Backend. Otherwise, if you have a custom Backend (either local or remote), you need to create a specific environment file (say `my_personal_backend.dart`) in the `mobile/lib/environments` folder, e.g.:
60
94
@@ -68,7 +102,7 @@ class MyPersonalBackend extends Env {
68
102
}
69
103
```
70
104
71
-
6. Build the mobile apps
105
+
3. Build the mobile apps
72
106
73
107
First `cd` to the `mobile` directory:
74
108
@@ -79,18 +113,18 @@ cd mobile
79
113
If you simply want to target the default Heroku backend, just run:
80
114
81
115
```sh
82
-
flutter build apk
116
+
flutter build apk --debug
83
117
```
84
118
85
119
Otherwise, if you have a custom Backend (and its related Dart environment file) declared under `mobile/lib/environments/my_personal_backend.dart`, then run:
You will then find the mobile applications built under the respective platform folders. For example, the APK for Android can be found under `build/app/outputs/apk/`.
125
+
You will then find the mobile applications built under the respective platform folders. For example, the APK for Android can be found under `build/app/outputs/apk/debug/`.
92
126
93
-
7. Install and run the APK either in an emulator or in a real device
127
+
4. Install and run the APK either in an emulator or in a real device
0 commit comments