Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
client @ 63fcf00 WhatsApp Clone Tutorial Feb 20, 2019
server @ 6aa03ee WhatsApp Clone Tutorial Feb 20, 2019
.gitignore WhatsApp Clone Tutorial Feb 20, 2019

WhatsApp Clone Tutorial

You might have seen it around already - an open-source WhatsApp Clone tutorial; a project which was originally started in 2015 by Uri Goldshtein based on Angular-Meteor and Ionic, and have been throughout different incarnations ever since.

This time around, I'm happy to announce that a new version of the WhatsApp Clone is coming, and it's based on React 16.7 (Hooks & Suspense), Styled-Components, Material-UI, TypeScript, GraphQL-Subscriptions/Codegen/Modules, PostgreSQL and TypeORM.

The step-by-step implementations of the server and client can be found here:


Why is it so good?

This app was built with all the latest and hottest technologies out there. The purpose is simple - it should be a guideline for building a proper app, thus we thought very carefully regards the design patterns and architecture used in it, plus, we made sure to cover all communication methods with the GraphQL-back-end in different variations (query, mutation, subscription). This way whenever you're looking to start a new app, maintain an existing one or upgrade your dev-stack, the WhatsApp-clone can be a great source to start with! It's full stack and has a complete flow.

Why did we choose this dev-stack?

React, GraphQL, PostgreSQL and TypeScript for obvious reasons - they are backed by a strong ecosystem. These technologies can be used in endless variations, and there's no one way which is the most right of doing so, but we chose a way that makes the most sense for us and that we truly believe in when it comes to building apps. We've connected all 4 with TypeORM, GraphQL-Codegen, GraphQL-Modules for the following reasons:

  • The GraphQL back-end was implemented with GraphQL-Modules where logic was splitted into modules based on entity types. GraphQL-Modules is an amazing library which provides you with the ability to manage and maintain your GraphQL schema correctly. Not once nor twice I have seen people who struggle with that and get tangled upon their own creation, and with GraphQL-Modules where you have a very defined structure, this problem can be easily solved.

  • Every GraphQL/TypeScript definition were automatically generated with GraphQL-Codegen using a single command call. There's no need to maintain the same thing twice if it already exists in one way or another. This way you don't have to write TypeScript type definitions for your GraphQL documents (queries, mutations and subscriptions), GraphQL resolvers and GraphQL types.

  • The new version of React 16.7 was used with Hooks and Suspense and 100% of the project is made out of function components. The front-end communicates with the back-end using only hooks and there was no use in GraphQL-React components, which makes async tasks look a lot more readable with no extra indentations.

  • We used TypeORM to correctly split the logic of the entities in the database and define the relationships between them. Without a tool such as TypeORM, communication against the DB tends to get messy and confusion since there's no single module per entity which holds all its related logic.

What to expect?

  • Basic authentication.

  • Image uploading with Cloudinary.

  • Live updates with GraphQL subscriptions.

  • 100% function components with React Hooks.

  • GraphQL communication with react-apollo-hooks.

This app be extremely useful for those who have little to no background in one of the technologies in our dev-stack.

Begin Tutorial >
You can’t perform that action at this time.