Upgrade to Pro — share decks privately, control downloads, hide ads and more …

FlutterMTL September Meetup - Build Full-Stack App in Dart

GDG Montreal
September 21, 2023

FlutterMTL September Meetup - Build Full-Stack App in Dart

GDG Montreal

September 21, 2023
Tweet

More Decks by GDG Montreal

Other Decks in Programming

Transcript

  1. Jhin Lee Full-Stack Developer @Unity | GDG & Flutter Montreal

    Organizer • Full Stack Developer (Android, iOS, Flutter, Web, DevOps or anything!) • 10yr+ Android and Embedded System Engineer (AOSP, Linux Kernel, HAL, etc.) • Scrum Master (PSM2) • https://www.linkedin.com/in/leehack/
  2. Agenda 1 2 3 4 5 Why full-stack in Dart?

    What do we build? Global Architecture Project Structure Reset APIs 6 Let’s Code!
  3. One Programming Language Share codes between Backend and Frontend Flutter

    (and Dart Frog!) It’s easy and fun! Performance??? + + + Why Full Stack in Dart? + +
  4. Project Structure Mono repo • Frontend Flutter Codes in /packages/frontend_flutter

    ◦ Flutter UI and REST API Client • Backend Dart Frog Codes in /packages/backend_frog ◦ Dart Frog REST API Server • Shared library in /packages/todo ◦ Data Model ◦ Repository Interface Frontend and Backend uses the Shared library as a dependency.
  5. REST APIs • /todos ◦ POST - Add a new

    todo ◦ GET - Get all todo list • /todos/:id ◦ GET - Get a todo by id ◦ PUT - Update a todo ◦ DELETE - Delete a todo by id
  6. References • Article for more detail - https://dev.to/leehack/lets-build-a-full-stack-dart-app-36lm • Dart

    Frog Website - https://dartfrog.vgv.dev/ • Melos Website - https://melos.invertase.dev/ • Riverpod Website - https://riverpod.dev/