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
+33-5Lines changed: 33 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,45 @@ 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
+
A test user with the following credentials will be available:
16
16
17
-
Follow the instructions in the django backend project's README.
17
+
```
18
+
username: testuser
19
+
password: testpassword
20
+
```
21
+
22
+
# Service Configuration
23
+
24
+
This demo can be used with cloud or local services.
25
+
26
+
## Local Services
27
+
28
+
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.
29
+
See [instructions](https://github.com/powersync-ja/self-host-demo/blob/main/demos/django/README.md) for starting the backend locally.
30
+
31
+
The backend demo should perform all the required setup automatically.
32
+
33
+
### Android
34
+
35
+
Note that Android requires port forwarding of local services. These can be configured with ADB as below:
0 commit comments