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
X Clone: the timeline with the post composer, and the sign-in screen
Fig. 01 · X Clone: the timeline with the post composer, and the sign-in screen

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.

X Clone home timeline with the post composer, a feed of posts and both sidebars
Fig. 02 · X Clone home timeline with the post composer, a feed of posts and both sidebars

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