/sputnikn-chat-sample

A Flutter example of a chat application in which uses the SputnikN SDK

Primary LanguageDartGNU Affero General Public License v3.0AGPL-3.0

SputnikN Chat sample

A Flutter example of a chat application in which uses the SputnikN Client SDK

Repositories overview

The chat ecosystem consists of several dependent repositories:

  • Database code gen - Class generator according to the DB schema, the DB schema is attached;
  • Transport code gen - Transport message generator between Client and Server;
  • Chat server - High loaded and scalable chat server written with Akka/Ktor/Rest/WebSocket/Protobuf/Jooq;
  • Client chat SDK - SDK client chat library for embedding in third-party applications written in Flutter;
  • Sample application - An example of a chat application using the SDK client library written with Flutter;

JSON code generation

Project based on json_serializable library to help generate boilerplate transport messages source code, this approach is recommended for use in large projects.
For generation we should annotate some serializable class with annotation @JsonSerializable().
More can be found here

Generators

General: flutter pub run build_runner build --delete-conflicting-outputs
Gen localizations: flutter gen-l10n