Skip to main content

Command Palette

Search for a command to run...

⚙ React Twitter-clone

Updated
2 min read
⚙ React Twitter-clone
L

French software engineer building a new life in Japan. My journey here is a big challenge—from learning the language to navigating the tech scene. I use this blog as a space to share what I'm learning, both in tech and in life.

React Twitter Clone

image.png

Follow along with the youtube tutorial 🔴 Build a TWITTER Clone with REACT JS for Beginners and set up the firebase app.

The clone is limited to the simple messaging app.

What I have learned?

  • Getting started with ReactJs
  • Component oriented conception
  • Twitter API integration React-twitter-embed to include tweet feed
  • React modules
  • CSS BEM convention (check http://getbem.com/naming/)
  • Integration of Firebase for database and hosting (firestore=realtime Firestore database to store comments)
  • Integration of Material ui (https://material-ui.com/)

Steps

Create react app sample and start the app

npx create-react-app twitter-clone
cd twitter-clone
npm start

Components

image.png

  • App
    • Sidebar
      • SidebarOption
    • Feed
      • TweetBox
      • Post
    • Widgets

React modules

  • Install twitter features such as TwitterTimelineEmbed, TwitterShareButton, TwitterTweetEmbed with npm i react-twitter-embed

  • install flip-move for a smooth animation when tweet with npm i react-flip-move

Deployment

  • Install Firebase for backend with npm i firebase

  • Log in the app with firebase firebase login

  • Deploy firebase with following command in console

firebase init
Enter yes to proceed
? Hosting: Configure and deploy Firebase Hosting sites
? Use an existing project
? twitter-clone-4fb96 (twitter-clone)
? What do you want to use as your public directory? build
? Configure as a single-page app ? Yes
  • Clean and create the version to deploy with npm run build
  • After any update, run the command again and deploy with firebase deploy

⚙ Technical

Part 10 of 20

In this series, I gather data on IT concepts and I come back step by step on how I made a project, introduction to a new language/framework, how to deploy on a specific platform, how to use a library.

Up next

⚙ CSS Webtool utility

Basics of UI/UX Basics of UX Youtube Design for Non-Designers Website for inspiration dribbble -uidesigndaily CSS library Bulma BEM material.io Responsive tips Deploy SCSS Variables & Save Everyday from Today Tools Gradients uigradients gr...

More from this blog

L

LPM Blog

194 posts

日本でのキャリアを切り拓く私の挑戦の記録です。

ここでは、私の就職活動の道のり、技術的な学び、そして異文化で働くことの喜びと苦労を共有していきます。

この挑戦を通じて、ITエンジニアとしての成長を皆さんにお見せできれば幸いです。