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
Copy file name to clipboardExpand all lines: demos/django-todolist/README.md
+31-5Lines changed: 31 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# PowerSync + Django Flutter Demo: Todo List App
2
2
3
-
Demo app demonstrating use of the PowerSync SDK for Flutter together with the [demo Django backend](https://github.com/powersync-ja/powersync-django-backend-todolist-demo).
3
+
Demo app demonstrating use of the PowerSync SDK for Flutter together with the [demo Django backend](https://github.com/powersync-ja/powersync-django-backend-todolist-demo).
4
4
5
5
# Running the app
6
6
@@ -12,17 +12,43 @@ Ensure you have [melos](https://melos.invertase.dev/~melos-latest/getting-starte
12
12
4. Insert your Django URL and PowerSync project credentials into `lib/app_config.dart` (See instructions below)
13
13
5.`flutter run`
14
14
15
-
# Set up Django project
15
+
# Service Configuration
16
16
17
-
Follow the instructions in the django backend project's README.
17
+
This demo can be used with cloud or local services.
18
+
19
+
## Local Services
20
+
21
+
The [Self Hosting Demo](https://github.com/powersync-ja/self-host-demo) repository contains a Docker Compose Django backend demo which can be used with this client.
22
+
See [instructions](https://github.com/powersync-ja/self-host-demo/blob/main/demos/django/README.md) for starting the backend locally.
23
+
24
+
The backend demo should perform all the required setup automatically. A test user with the following credentials will be available:
25
+
26
+
```
27
+
username: testuser
28
+
password: testpassword
29
+
```
30
+
31
+
### Android
32
+
33
+
Note that Android requires port forwarding of local services. These can be configured with ADB as below:
0 commit comments