25
A-in-depth look at my Confession app
Finished Product Link -https://conphession.netlify.app/
Source Code - https://bit.ly/3xjyYJ9
To contribute join our SLACK Workspace
Confession is a fully functional social media cum dating app which we developed for our fellow college mates so that they can post whatever they want to confess. They can confess publicly, privately and anonymously. Earlier our college mates were using an Instagram page to do the same, which we believe is a less democratic way as its up to the admin of the page to selectively post the confessions. This triggered us to create an app which does the same in a more democratic fashion and with better minimalistic UI and even more features like chat app, therapy room, toxic comment detector etc.
We intend to achieve the following objectives by developing this app -
- Create an online dating cum social media platform that replaces the existing dependence on an Instagram page.
- Provide a safe place for our college mates to post confessions where they can confess publicly, privately, and anonymously in a more democratic way.
Though we created this app for our college mates but its for anyone who -
- wants to confess to their college crush.
- wants a democratic platform to share his/her opinion publicly or anonymously.
- wants a safe place for confessing privately while keeping their details confidential.
- wants a platform where they can chat with their mates
-
Realtime Update
- This feature is made possible by technologies like React and Firebase Real-time Database.
- Any changes made to the database will be reflected real-time on the web page.
-
Anonymous Confession
- One doesn't need to authenticate to confess anonymously. If someone wish to confess anonymously, we have created a separate account for that. So when someone confess anonymously, it gets posted under the name of that account and not under name of user's account. So we have no way to know who have posted that confession. b. There is also a downside to confessing anonymously, user can't update and delete their anonymous confession. For now we decided to keep it that way.
-
Authentication
- Although you can anonymously confess on our platform, but in order to publicly confess and access some features one needs to authenticate.
- Confession provides you two ways to authenticate - google authentication and email authentication
- Even after authentication, one can easily confess anonymously.
- To make the authentication possible we have used Firebase Authentication.
-
User Profile and Profile Engagement
- When user authenticate, a profile gets created with their chosen username.
- One can share their profile and also other's profile on other social media platforms.
- One can make changes to his/her profile, they can change their username, avatar etc
- One can also follow and unfollow other's profile. They follow their profile by default. So every user have at least one follower and following by default.
-
Confessions CRUD
- Once authenticated user can create, read, update and delete their confessions publicly. Though that's not the case with anonymous confessions.
- Users can also confess privately in the therapy room. This feature is under development though. Nobody will be able to see the private confessions except for the website admin and the user and the admin will make sure to keep those confessions confidential.
-
Confessions Engagement
- One can like and unlike the confession.
- One can share the confession.
- One can comment on the confession.
- One can report the confession. (Under development)
-
Comment CRUD
- Once authenticated users can comment on each other's confessions.
- User can perform CRUD operation on their own confessions.
-
Nested Comments (Under Development)
- Once authenticated user can comment on each others comment.
- We are keeping the comment reply thread to one level only for now.
-
Responsive and Masonry UI
- The web app is completely responsive. The UI is compatible with all the device. To make the website responsive we used Bootstrap with React.
- All the confessions are arranged in masonry fashion. For masonry look we have used an NPM package, react-masonry-css to do the job.
-
Infinite Scroll (Under Development)
- One should be able to see 30 confessions at a time in masonry pattern.
- Instead of doing it paginated way, we are using infinite scroll.
-
Toxic confession and comment detector (Under Development)
- Another problem we are anticipating with Confession App is Content Moderation.
- Instead of using man-power for moderating the content, we are planning to deploy an ML Algorithm to filter the toxic confessions and comments and hide them.
-
Integrated Chat App
- Confession also has an integrated chat app.
- For this purpose we are using an React Chat Engine API.
-
Integrated Therapy Room for private confessions (Under Development)
- One can confess privately to the site admin in the therapy room.
- The private confessions will be kept confidential at all times.
- Private confessions can also be posted anonymously.
-
Update and Delete Problem with Anonymous Confessions
As I mentioned, Anonymous Confession doesn't goes under any user's account, it goes under a anonymous user's account which I have created for this purpose. So we have no way of knowing who created that anonymous confession. Since a user can only delete their own confessions and not others, therefore there is no way of updating and deleting anonymous' confessions.
Though we can make changes to Database schema and associate that anonymous confession to the user's account, but then the site admin would know who created the confession which contradicts what anonymous confession stands for. So we decided to keep it that way.
-
Content Moderation
An advantage that that Instagram Page has over our app is content moderation. All the confessions goes through the page admin, and the admin choose which confessions to post and which not. Though that's not the most democratic way of posting confessions, but they have advantage of filtering the abusive and toxic once, which we don't have.
To tackle this issue, we are creating a TOXIC confessions and comment detector. We are letting the algorithm decide which confessions to keep and which to hide. But there's another catch here, since we don't have enough data of the confessions now, we can't exactly train the model on our data, we have to rely on data from some other source, hence the model will be prepared accordingly.
-
3rd party dependency for Chat App
As we mentioned, Confessions App has an integrated chat app for which we are using React Chat Engine. One limitations it poses to us, that it deletes the chats in a few days, therefore the users won't be able to see their chats after few days.
To overcome this issue we are planning to create a custom chat app from scratch.
-
SEO (Search Engine Optimizations)
We are using React library to build the user interface and it's not good with pre-rendering the page, hence our app suffers with SEO because search engines and web crawlers won't be able to see the content of the page as its not pre-rendered on server.
To overcome this issue, we are planning to change the entire codebase of our project from React.js to Next.js, which is a react based framework and is good at Server Side Rendering and hence SEO.
25