Skip to content

Case study · Tuwaiq Academy

X Clone

A Twitter (X) clone built in a day at Tuwaiq Academy: sign up, post, like and delete your own posts.

My role
Built it alone
Team
Solo
Timeline
Oct 2024, 1 day
Context
Tuwaiq Academy
Platform
React app on Netlify
The home timeline on desktop, with the composer and a feed of posts, beside the "Happening now" welcome page on a phone
Fig. 01 · Timeline on desktop, welcome page on a phone

01 Overview

A clone of X's home timeline built in one day. You sign up, write posts and like them, and your profile lists your posts so you can delete them.

02 Problem

A Tuwaiq Academy exercise: rebuild a familiar interface closely and wire sign-up to an API.

03 My role

  • InterfaceRebuilt X's three-column layout in React and Tailwind CSS
  • AccountsSign-up and log-in against MockAPI
  • PostsPosting, likes and a timeline of everyone's posts, sorted by date
Frontend
ReactViteTailwind CSSReact RouterJavaScriptCSSHTML
Data
AxiosMockAPI
Tooling and hosting
ESLintGitGitHubNetlify

04 Key decisions

Everything on MockAPI

What we chose

MockAPI as the backend, with each user's posts and likes saved inside their record

Why

A REST API in minutes, so the day went into the interface.

Trade-off

The data is public, and every post or like rewrites that user's whole list of posts.

Sign-in kept in the browser

What we chose

The signed-in user's ID kept in localStorage

Why

No auth server for a one-day exercise.

Trade-off

Anyone can set it by hand, so it isn't real authentication.

05 Result

Built on Oct 8, 2024 and live on Netlify.

The home timeline with the post composer and two posts lifted out of the feed, one of them liked
01 / 03
Fig. 02 · Composer, posts and likes

What I learned

Rebuilding a product people use every day showed me how much detail sits behind a familiar interface, and how to ship a working version of it in one day.

With thanks to

Next project: YouTube Clone

Video browsing on the YouTube API with suggestions.

Questions

Want to Go Deeper on X Clone? I’m Happy to Walk You Through It.

Email me