r/FlutterDev • • Oct 04 '19

Example The messaging app I worked for months got cancelled but they open source it. Here's the code for you!

I worked on this nice looking and feature rich messaging app for groups that like to meet IRL. Unfortunately the project got discontinued but the owners agreed to open source it.

https://github.com/janoodleFTW/timy-messenger

It also includes the Firebase Cloud Functions in JavaScript.

It has some missing features (like registration is missing) but otherwise it can help anyone looking for examples.

Enjoy!

261 Upvotes

30 comments sorted by

15

u/[deleted] Oct 04 '19

It’s gorgeous! UI is inspired by Discord a little bit I guess :D Cool that we get some real production application examples (almost production at least :D)

5

u/[deleted] Oct 04 '19

Yes, discord and slack were big inspirations. The killer feature was more the event scheduling part. We had a designer so it is definitely not just the work of a dev ;)

12

u/aytunch Oct 04 '19

Wow this is priceless. I am especially happy to see cloud functions integration. I couldn't find any other examples. I only wish they were in typescript:) I am so glad that i will be able to examine the structure of a flutter and firebase production ready app. Thanks to you guys. One last thing, was there a specific reason why this cool project got canceled?

2

u/[deleted] Oct 05 '19

Yes, not adopting Typescript was a rookie mistake :)

Simply the owners didn't see the value after running with a test group, it was not a tech issue but more a marketing and logistics issue.

8

u/p2harry Oct 04 '19

Couple of questions here.

How long did it take for you to code an app like this with flutter and firebase?. just a rough estimate

where are you enforcing GoogleService-Info-Dev.plist. I was trying hard to find where it is mentioned in the build settings because I wanted to change the path and the name. but ended up going with the readme file

4

u/aytunch Oct 04 '19

Very good question. Also what size of a team? 1UI designer? how many coders on Flutter? how many on cloud functions? Firebase, etc..? I would love to get feedback.

2

u/[deleted] Oct 05 '19 edited Oct 05 '19

2 devs, one with Android experience (me) and one with iOS experience, working in total 50 hours per week. We had an external designer team that sent us designs but we had lots of freedom.

We also had a product manager of course.

We coded everything ourselves.

2

u/[deleted] Oct 05 '19 edited Oct 05 '19

The coding took 4 months with 1 dev working 30 hours a week and 1 dev around 20h.

GoogleService-Info-Dev.plist: unfortunately my colleague was the one doing it and I am not sure how to change its path

4

u/eli_li Oct 04 '19

Are you thinking to receive contributions!?

2

u/[deleted] Oct 04 '19

We haven't thought about it. I'm still a maintainer but I'm not sure if it makes sense to do it.

3

u/xumo Oct 04 '19

This is awesome.

A guided video tour commenting structure/design choices, best practices, etc. would be inmediate success (I think).

5

u/[deleted] Oct 05 '19

I am writing a series of blogposts on it. Here's the first entry: https://medium.com/@MiBLT/building-a-messaging-app-in-flutter-part-i-project-structure-7d6db38783a5

1

u/aytunch Oct 05 '19

Following you in medium And clapped the article. Make more coming:) i would like to hear more about security rules and cloud functions. Also bloc

1

u/xumo Oct 05 '19

Nice.

1

u/eli_li Oct 04 '19

Just thinking Imao :D

2

u/jowe94 Oct 04 '19

Looks like a very nice app! It's a shame they killed it. I just tried to run this app after the whole firebase set up. However after I successfully log in I keep getting a white screen. My locale is in "en", do you have a suggestion because now I can't create a new event and I need that before the firebase deploy command.

Thanks!:)

1

u/[deleted] Oct 05 '19

the issue you have is that you need to create groups and users manually at the moment on the Firestore database, check the firestore scripts in firebase/scrips to generate the necessary data. I hope this helps!

1

u/MrbeastyCakes Oct 11 '19

i input them all manually, how do i use the script? cause im still getting a white screen

2

u/toufeeqahamedns Oct 04 '19

Newbie here! I got to know all the stuff, but still not able to understand what is the use of cloud functions.

1

u/[deleted] Oct 05 '19

You need to do some operations in the background, for example, send push notifications to users when something happens. That's what cloud functions do.

1

u/toufeeqahamedns Oct 05 '19

But there was this new user being added to database via functions, which can be done through within app, why these functions.

1

u/[deleted] Oct 05 '19

In some cases because it was a missing a feature in the app (like user registration) and so we automated it with javascript functions until the UI was ready (which didn't happen at the time the project ended)

1

u/aytunch Oct 05 '19

Do you have an estimate on the number of active users which does not pass Firebase free tier usage? Have you done any stress tests with many users? Maybe that gave you an idea on the number of I/O to firestore? A guesstimate would be ok for me. Thanks, btw I am looking at the code for the last 2 days and it is very well written and organized👍

1

u/[deleted] Oct 06 '19

Unfortunately not, Id love to know as well but we never got there. Thanks for the nice words!

1

u/aytunch Oct 05 '19

Hi, where is the scripts folder under firebase folder? The medium article and the github readme says it should exist but I cant find it:(

2

u/[deleted] Oct 06 '19

Oof thanks for telling me. I think they were not included in the code export. I'll add them in the next hours.

1

u/aytunch Oct 06 '19

Thanks I see the scripts folder now and there is just 1 file group-create.js is there supposed to be a users-create.js too? Reading the comments here thats what I thought. Thanks

3

u/p2harry Oct 04 '19

I was working on a very similar app and also using the same approach of firebase, functions etc. So nice to have a look at your structure and see how you have gone about it. Thanks!

1

u/Bk_ADV Oct 08 '19

Hey dude. VERY NICE APP. I been working on a similar concept. Would you say what happened and why this got canceled? Is there no market for this? Would help me a lot as well when I have to market my app!

If you dont mind. I am going to somewhat implement that drawer of yours. But for a wee bit different purpose. I hope you dont mind. I been working on my app for 8+ months now(by myself). Obviously I will use my own picture( i already drew one up). Nice job man.

1

u/goodnamewasted Oct 09 '19

Thanks.

What made you finally choose good ol' redux?

It seems people go out of their way to avoid using Redux in Flutter :) I always feel like a new, go-to State Management paradigm will evolve and I'll pick the loser.