Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

the group messaging app

an amazing  group messaging app build with flutter.

main features

  • multiple groups (similar to teams in slack).
  • multiple open or private channels within groups.
  • sharing of photos and photo collections.
  • react to messages with emoji.
  • push-notifications for message and channel updates.
  • specific channels for events (e.g. containing date, venue).
  • editing of event channels.
  • calendar for all upcoming and passed events aggregated over all groups and channels.
  • english and german localization.
  • rsvp for events.

project structure

this is a flutter mobile app targeting android and ios.

the code for the flutter app is contained in the folder lib and the
different native apps are in android and ios. extra project assets are in
assets and fonts.

as well, this package  hosts a series of firebase config files and cloud functions.

the documentation for firebase part is inside the firebase folder.

prerequisites & getting started

client

to build and run the mobile apps you’ll need to install flutter and its dependencies. to verify your installation run in the project’s root directory:

$ flutter doctor

the app is optimised for android and ios phones in portrait mode.

note: additionally you’ll need to add the googleservice-info of your firebase app to your clients as described in b3. configure firebase app below.

backend (firebase)

the backend is build using firebase’s node.js sdk. all files are provided in the firebase folder. to deploy the code create an app and install the firebase cli (see step 1 & 2 in getting started).

note: the following steps assume you’re using firebases’ free spark plan. therefore we’re performing the configuration manually.

b1. setup sign-in method & adding users

an initial sing-in method needs to be configured.

adding a user

currently users need to be added manually.

  • in firebase navigate to authentication and select users.
  • then add user.

please copy the user-uid of the created user. we’ll need to add this id to a group in the next step.

note: you’ll need to have at least one user configured to use the app.

b2. create and setup database

in the firebase console select database under develop and create a cloud firestore database in region eur3 (europe-west).

note: to use the app you’ll need to create a group. a “group” is similar to e.g. a “team” in slack. to create one:

create group collection

  • select the database you’ve just created.
  • create collection and name it groups.
  • add your first group with the following properties:
name type value
abbreviation string te
color string ffffff
members array user-uid we’ve retrieved in adding a user above
name string test

we’ve now setup our fist test group. in addition to this step we’ll need to setup a default channel (e.g. something similar to #general in slack).

create channel sub-collection

  • in the groups collection select the newly created group.
  • create collection within the group called channels.
  • add your first channel with the following properties:
name type value
name string general
type string topic
visibility string open

b3. configure firebase app

next you’ll need to configure your firebase app for flutter as described in add firebase to an app / flutter

ios

  • enter ios-bundle-id: de.janoodle.circlesapp.debug
  • download and rename googleservice-info.plist to googleservice-info-dev.plist.
  • copy file to ios/runner/firebase.

note: if you’re building for release you’ll additionally need to add a googleservice-info-prod.plist pointing to your production firebase app.

b4. deploy firebase functions

navigate to the firebase directory and deploy all functions using:

$ firebase deploy --only functions

b5. final steps

run the flutter app using your favourite ide (e.g. visual studio code / android studio). next you’ll need to run the app.

note: please skip any error that might occur.

login with the user you’ve created above.
next create your first event to setup the calendar collection in our backend.

create an event

  • in the app select the hamburger menu
  • hit the + sign next to events
  • enter any data you like and hit create

at the root level of your database you should now see a collection called calendar in your firebase console.

now we’re ready to deploy all parts of our backend using:

$ firebase deploy

deployment

the app is setup to work with a development and production environment. we suggest you create a different firebase app for each environment.

when building for release the app will automatically use the production configuration that you’ve configured in step b3.


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.