An example todos app built with dart_frog
How to run?
-
Read the prerequisites
-
Clone the repo and cd into it
-
Run
dart pub get
on each package -
Run
dart_frog dev
from root project -
Open http://localhost:8080 at your browser (or REST client app if you want)
Usage
-
GET http://localhost:8080/todos to show all todos
-
POST http://localhost:8080/todos and give it a body of
{"title": "Your note here"}
to create new todo -
GET http://localhost:8080/todos/ to read specific todo by id
-
PUT http://localhost:8080/todos/ and give it a body of
{"title": "Update note here", "isCompleted": true}
to update specific todo by id -
DELETE http://localhost:8080/todos/ to delete a specific todo by id