Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
Stream-Framework
Stream Framework is a Python library, which allows you to build news feed, activity streams and notification systems using Cassandra and/or Redis. The authors of Stream-Framework also provide a cloud service for feed technology:
The next step is to connect the selected user from the start page to the Feeds App on your Stream dashboard. To connect a user to Stream, you first need to create an instance of your Stream app in your React application. To do this, you use the StreamClient constructor from the getstream library. After creating the instance, then you can connect the user to Stream. And with the StreamApp component from the React SDK, you can provide feed methods and data to other components.
react-activity-feed: built on the getstream library for providing React components to integrate activity feeds into your application.
classnames: utility library for dynamically combining classes
date-fns: for formatting dates in a readable manner
nanoid: for generating unique IDs. You will use this to generate IDs for tweets
A lot of icons are used throughout this project. I got the icons from remixicon and made them reusable React components. You can find all the icons in this archived file in the repo. Create a new folder src/components/Icons and save all the icons from the archive there.
To start building the clone, you need to install dependencies from the npm library. To install dependencies, you need to have Node installed on your system. Alternatively, you can use yarn, but I will be using npm in this article.
A lot of icons are used throughout this project. I got the icons from remixicon and made them reusable React components. You can find all the icons in this archived file in the repo. Create a new folder src/components/Icons and save all the icons from the archive there.
Next, you have to configure React Router to show the start page on the index path.
const users = [ { id: 'iamdillion', name: 'Dillion', image: 'https://dillionmegida.com/img/deee.jpg', bio: 'Just here, doing my thing. Developer advocate at @getstream_io', token: 'ENTER TOKEN FOR iamdillion', }, { id: 'getstream_io', name: 'Stream', image: 'https://avatars.githubusercontent.com/u/8597527?s=200&v=4', bio: 'Deploy activity feeds and chat at scale with Stream – an API driven platform powering over a billion end users. Get started at http://getstream.io.', token: 'ENTER TOKEN FOR getstream_io', }, { id: 'jake', name: 'Jake', image: 'https://picsum.photos/300/300', bio: 'Just Jake, nothing much', token: 'ENTER TOKEN FOR jake', }, { id: 'joe', name: 'Joe', image: 'https://picsum.photos/200/200', bio: 'How are you?', token: 'ENTER TOKEN FOR joe', }, { id: 'mike', name: 'Mike', image: 'https://picsum.photos/400/400', bio: 'I am mike here. I do things on #react and #javascript', token: 'ENTER TOKEN FOR mike', }, ] export default users
We will use create-react-app (CRA) to create the React application. On your terminal, run:
Related posts
- Javascript Date() - DateOnly Format and off by 1 day when using date-fns
- How to Configure CORS in Node.js With Express
- 👨🚀 Traversing Time with Intl.RelativeTimeFormat()
- VulcanSQL: open-source data API framework. Empowering you to construct APIs exclusively with SQL.
- How I Sliced Deployment Times to a Fraction and Achieved Lightning-Fast Deployments with GitHub Actions