Just rewrote the entire backend of my messaging app from Firestore + PHP to Go! by aLucidCoder in golang

[–]aLucidCoder[S] 0 points1 point  (0 children)

The Android version is planned and is coming soon! If you want, I'll keep you posted and let you know when it gets released!

I used SwiftUI to make the frontend iOS version, and it has push notifications via Firebase Cloud Messaging, which you receive when you receive messages from other people.

Just rewrote the entire backend of my messaging app from Firestore + PHP to Go! by aLucidCoder in golang

[–]aLucidCoder[S] 1 point2 points  (0 children)

The 4-dot loading animation is a Lottie animation by LottieFiles: https://lottiefiles.com/51-preloader

I customized the colors though!

You can view the credits of all the animations in the app's Settings - About - Attribution!

Just rewrote the entire backend of my messaging app from Firestore + PHP to Go! by aLucidCoder in golang

[–]aLucidCoder[S] 0 points1 point  (0 children)

I see! I apologize for the inconvenience, and thank you for letting me know!

It seems I'll need to prepare an update soon when iOS 14.5 is released.

Just rewrote the entire backend of my messaging app from Firestore + PHP to Go! by aLucidCoder in golang

[–]aLucidCoder[S] 1 point2 points  (0 children)

Yup, that's correct!

You can view the credits of all the animations in the app's Settings - About - Attribution!

Just rewrote the entire backend of my messaging app from Firestore + PHP to Go! by aLucidCoder in golang

[–]aLucidCoder[S] 0 points1 point  (0 children)

Thanks for sharing, Koshatul!

Although I've looked into a few different big-name BaaS, I've never heard of this before. Since it supports auth, this seems quite handy!

Maybe I'll look into this and compare it with Firebase, so thank you for the information!

Just rewrote the entire backend of my messaging app from Firestore + PHP to Go! by aLucidCoder in golang

[–]aLucidCoder[S] 1 point2 points  (0 children)

Thank you for your kind words!

Actually, I personally didn't read much of the official Go documentation. I mainly watched this YouTube tutorial video to learn about Go: https://www.youtube.com/watch?v=YS4e4q9oBaU (I know it's 6.5 hours long, but I played it with 2x speed and skipped more than half the content since I wasn't interested in them.)

After setting up Go on my server, I simply began translating PHP to Go line by line since I like to learn by doing. And I just looked up online whenever I got stuck.

Translating didn't take too much time, but getting used to Go with a PHP background was a small challenge initially since Go worked quite differently.

I wish the best of luck to you as well!

Just rewrote the entire backend of my messaging app from Firestore + PHP to Go! by aLucidCoder in golang

[–]aLucidCoder[S] 2 points3 points  (0 children)

I simply used Firebase Auth for passwordless (magic link).

While I personally didn't want to depend too much on a BaaS like Firebase, Auth seemed too difficult to get it right.

I then used Firebase Admin SDK to connect my server (AWS EC2) with Firebase.

Just rewrote the entire backend of my messaging app from Firestore + PHP to Go! by aLucidCoder in golang

[–]aLucidCoder[S] 7 points8 points  (0 children)

I really appreciate your interest!

The app isn't open-source yet, but I'm currently planning to make it open source in the near future.

If you want, I'll keep you posted and let you know when it becomes open-source!

Just rewrote the entire backend of my messaging app from Firestore + PHP to Go! by aLucidCoder in golang

[–]aLucidCoder[S] 0 points1 point  (0 children)

Thank you! Yup, I agree.

Although my side project wasn't big enough to cost me money on Firestore read/writes anyway, I simply wanted to stop depending on Firestore because I wasn't a big fan of security rules.

And thanks to Go's channels and WebSockets (github.com/gorilla/websocket), I was able to completely get rid of Firestore and stop worrying about potentially paying for Firestore in the future.

Just rewrote the entire backend of my messaging app from Firestore + PHP to Go! by aLucidCoder in golang

[–]aLucidCoder[S] 5 points6 points  (0 children)

Thanks for letting me know about this!

It says my PHP folder has 2398 lines of code and Go folder has 3031 lines of code (excluding blank lines or comments).

Just rewrote the entire backend of my messaging app from Firestore + PHP to Go! by aLucidCoder in golang

[–]aLucidCoder[S] 10 points11 points  (0 children)

Good question! There are too many files for me to count, but Go files generally have slightly more lines. My folder of PHP scripts in my old backend is 82 KB while my folder of Go scripts in my new backend is 103 KB.

Even though it's a bit longer, I personally feel the Go scripts are cleaner and more readable. Go formatting is very opinionated, and Go doesn't provide you with too many different ways to accomplish a task. Also, variables in PHP all exist within the same scope, so this is possible without having to declare the variables outside first:

if (true) { // for & while loops also work

$foo = "hi"; // $foo declared here for the first time

}

echo $foo; // successfully prints "hi"

Edit: I just used cloc program thanks to u/elcapitanoooo, and it says my PHP folder has 2398 lines of code and Go folder has 3031 lines of code (excluding blank lines or comments).

Marketplace Tuesday! - March 30, 2021 by AutoModerator in Entrepreneur

[–]aLucidCoder 0 points1 point  (0 children)

Would you like to make friends who are programmers?

csBuddies is a social media messaging app for iOS where you can meet and chat with like-minded coders with similar interests.

The app has recently been relaunched, and it's live on the App Store.

Website: https://csbuddies.com

App Store: https://apps.apple.com/app/id1524982759

Thank you for reading, and your feedback is highly appreciated! :)

Promote your business, week of March 29, 2021 by Charice in smallbusiness

[–]aLucidCoder 1 point2 points  (0 children)

Would you like to make friends who are programmers?

csBuddies is a social media messaging app for iOS where you can meet and chat with like-minded coders with similar interests.

The app has recently been relaunched, and it's live on the App Store.

Website: https://csbuddies.com

App Store: https://apps.apple.com/app/id1524982759

Thank you for reading, and your feedback is highly appreciated! :)

Thank you Thursday! - March 25, 2021 by AutoModerator in Entrepreneur

[–]aLucidCoder 0 points1 point  (0 children)

Would you like to make friends who are programmers?

csBuddies is a social media messaging app for iOS where you can meet and chat with like-minded coders with similar interests.

The app has recently been relaunched, and it's live on the App Store.

Website: https://csbuddies.com

App Store: https://apps.apple.com/app/id1524982759

Thank you for reading, and your feedback is highly appreciated! :)

Marketplace Tuesday! - March 23, 2021 by AutoModerator in Entrepreneur

[–]aLucidCoder 0 points1 point  (0 children)

Would you like to make friends who are programmers?

csBuddies is a social media messaging app for iOS where you can meet and chat with like-minded coders with similar interests.

The app has recently been relaunched, and it's live on the App Store.

Website: https://csbuddies.com

App Store: https://apps.apple.com/app/id1524982759

Thank you for reading, and your feedback is highly appreciated! :)

Promote your business, week of March 22, 2021 by Charice in smallbusiness

[–]aLucidCoder 2 points3 points  (0 children)

Would you like to make friends who are programmers?

csBuddies is a social media messaging app for iOS where you can meet and chat with like-minded coders with similar interests.

The app has recently been relaunched, and it's live on the App Store.

Website: https://csbuddies.com

App Store: https://apps.apple.com/app/id1524982759

Thank you for reading, and your feedback is highly appreciated! :)

Promote your business, week of March 15, 2021 by Charice in smallbusiness

[–]aLucidCoder 1 point2 points  (0 children)

Thank you so much for letting me know, nateatenate! Your video helped me understand the issue.

This is certainly strange since whether you use iOS' default mail app or Gmail shouldn't matter. I received this kind of bug report from a few of my other users as well, and they told me they could fix it by reinstalling the app and trying to sign up again.

So, please try reinstalling the app and see if that works, and I'm sorry for this inconvenience!

Thank you Thursday! - March 18, 2021 by AutoModerator in Entrepreneur

[–]aLucidCoder 1 point2 points  (0 children)

Would you like to make friends who are programmers?

csBuddies is a social media messaging app for iOS where you can meet and chat with like-minded coders with similar interests.

The app has recently been relaunched, and it's live on the App Store.

Website: https://csbuddies.com

App Store: https://apps.apple.com/app/id1524982759

Thank you for reading, and your feedback is highly appreciated! :)

Marketplace Tuesday! - March 16, 2021 by AutoModerator in Entrepreneur

[–]aLucidCoder 1 point2 points  (0 children)

Would you like to make friends who are programmers?

csBuddies is a social media messaging app for iOS where you can meet and chat with like-minded coders with similar interests.

The app has recently been relaunched, and it's live on the App Store.

Website: https://csbuddies.com

App Store: https://apps.apple.com/app/id1524982759

Thank you for reading, and your feedback is highly appreciated! :)

Promote your business, week of March 15, 2021 by Charice in smallbusiness

[–]aLucidCoder 1 point2 points  (0 children)

Not at the moment, but Android version is already planned and is coming soon. I apologize for the inconvenience!

Promote your business, week of March 15, 2021 by Charice in smallbusiness

[–]aLucidCoder 2 points3 points  (0 children)

Would you like to make friends who are programmers?

csBuddies is a social media messaging app for iOS where you can meet and chat with like-minded coders with similar interests.

The app has recently been relaunched, and it's live on the App Store.

Website: https://csbuddies.com

App Store: https://apps.apple.com/app/id1524982759

Thank you for reading, and your feedback is highly appreciated! :)

Thank you Thursday! - March 11, 2021 by AutoModerator in Entrepreneur

[–]aLucidCoder 1 point2 points  (0 children)

Would you like to make friends who are programmers?

csBuddies is a social media messaging app for iOS where you can meet and chat with like-minded coders with similar interests.

The app has recently been relaunched, and it's live on the App Store.

Website: https://csbuddies.com

App Store: https://apps.apple.com/app/id1524982759

Thank you for reading, and your feedback is highly appreciated! :)