{"id":16583900,"url":"https://github.com/aloisdeniel/dart-fullstack","last_synced_at":"2025-08-02T22:08:24.698Z","repository":{"id":39611419,"uuid":"135058492","full_name":"aloisdeniel/dart-fullstack","owner":"aloisdeniel","description":"Experimenting architectures for developing all layers of a typical application in Dart.","archived":false,"fork":false,"pushed_at":"2018-10-22T10:05:46.000Z","size":164,"stargazers_count":26,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T05:41:28.499Z","etag":null,"topics":["api","dart","flutter","mobile","rest","website"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aloisdeniel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-27T15:26:44.000Z","updated_at":"2023-07-07T13:59:08.000Z","dependencies_parsed_at":"2022-09-15T21:41:13.025Z","dependency_job_id":null,"html_url":"https://github.com/aloisdeniel/dart-fullstack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aloisdeniel/dart-fullstack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdeniel%2Fdart-fullstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdeniel%2Fdart-fullstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdeniel%2Fdart-fullstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdeniel%2Fdart-fullstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aloisdeniel","download_url":"https://codeload.github.com/aloisdeniel/dart-fullstack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdeniel%2Fdart-fullstack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268464887,"owners_count":24254200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","dart","flutter","mobile","rest","website"],"created_at":"2024-10-11T22:43:28.878Z","updated_at":"2025-08-02T22:08:24.664Z","avatar_url":"https://github.com/aloisdeniel.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fullstack with Dart\n\nAn example that uses Dart language for developing all the application layers. This experiments purpose is also to find an approach to share a maximum of logic by applying interresting architectural patterns.\n\n![schema](hero.png)\n\n## Server (api)\n\n### GRPC Specifications\n\nThe server is fully based on [GRPC](https://grpc.io/) and [Protocol Buffers](https://developers.google.com/protocol-buffers/). Basicaly, this technology allows you to specify your Services (and its messages) format through a dedicated language ([proto3](https://developers.google.com/protocol-buffers/docs/proto3)).\n\nThe [api](./api) project contains the type and service specifications. A set of Dart classes are generated into the [generated](./api/generated) folder by executing the following command (make sure you installed [protoc](https://github.com/google/protobuf/releases) and the [dart plugin](https://github.com/dart-lang/dart-protoc-plugin)):\n\n```bash\n\u003e cd api/lib\n\u003e protoc --dart_out=grpc:generated --proto_path=\u003cproject-root\u003e/api/lib   -Iprotos tasks.proto\n```\n\nThis will generate a [TaskServiceClient](./api/lib/generated/generated.tasks.pbgrpc.dart) that will be used from the client side and a [TaskServiceBase](./api/lib/generated/generated.tasks.pbgrpc.dart) that is the abstract class in which the server must implement the actual logic.\n\n### Service implementation\n\n[A basic service implementation](./server/lib/services/tasks.dart) that keeps history in memory is provided.\n\n### Running\n\nTo start the server, execute the following command:\n\n```bash\n\u003e dart server/bin/server.dart\n```\n\n## Client (mobile, web)\n\n### Shared\n\nAll the application state is shared through a reactive architecture based on `Stream`, `StreamBuilder`, `InheritedWidget` and reactive extensions.\n\nTo learn more, watch [Build reactive mobile apps with Flutter (Google I/O '18)](https://www.youtube.com/watch?v=RS36gBEp8OI).\n\nBasically, all the application logic is stored in a [TaskBloc](./app/app_shared/lib/tasks_bloc.dart) that exposes various input and output streams.\n\n### Mobile *(Flutter)*\n\nThe mobile is composed of [several widgets](./app/app_mobile/lib/widgets) which subscribe to the global [TasksBloc](./app/app_shared/lib/tasks_bloc.dart) container widget.\n\nThe [TasksProvider](./app/app_mobile/lib/tasks_provider.dart) allows any widget to access to the unique [TasksBloc](./app/app_shared/lib/tasks_bloc.dart)  instance.\n\n### Web *(Angular-Dart)*\n\n*WIP*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloisdeniel%2Fdart-fullstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faloisdeniel%2Fdart-fullstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloisdeniel%2Fdart-fullstack/lists"}