Chrysolites Tech Academy

Video by Codesistency · streamed from YouTube. All rights remain with the creator.

Lesson 4: A Twitter Clone with React Native and the MERN Stack

About this lesson

This full-length project tutorial from Codesistency builds a Twitter-style social app for phones with React Native, backed by an API built with Express and MongoDB. After a preview of the finished app, it sets up the codebase and the database and introduces a realistic Git and GitHub workflow with branches and pull requests, as a team would use. The first half builds the backend REST API: routes for users, posts, comments and notifications, with images uploaded to and served from Cloudinary. Rate limiting, bot detection and other protections are added with Arcjet, and the finished API is deployed so that the mobile app can reach it. The second half builds the app. It covers React Native basics and sets up NativeWind for styling, then adds authentication with Clerk, which supports signing in with Google or Apple accounts. A tab navigator organises the main screens, starting with a search screen for trending content and a messages screen with chat history and long-press deletion. The app then syncs Clerk accounts with the project's own database. The home screen is built in stages, first creating posts with text and images from the gallery or camera, then fetching posts and liking them, and then commenting through a modal. A notifications screen shows likes and comments, and the profile screen fetches the user's data and lets them edit their profile. Afterwards, read Chapter 4 of the course book, which works through a rate limit by hand.

Install Chrysolites Tech Academy

Android / Chrome / Edge: open the browser menu and choose Install app or Add to Home screen.

iPhone / iPad (Safari): tap the Share button, then Add to Home Screen.