-
Book Overview & Buying
-
Table Of Contents
Learning Dart, Second Edition - Second Edition
By :
In this section, we code a web server that communicates with our clients and runs the todo app; the todo data is sent to and from the web server in the JSON string format. Spiral s06 consists of a server and a client part. To run it, first start the server (lib/server/server.dart) in Dart Editor or from the console; it runs when you see in the server.dart tab in Dart Editor: Listening for GET and POST on http://127.0.0.1:8080 (If it does not run, use run/manage launches). Then, start one or more clients (web/app.html) in Dartium. Locally, the client still saves the data in IndexedDB. Our screen has two new buttons:
This is how the tasks application at this stage looks like:

Server...
Change the font size
Change margin width
Change background colour