Create a twitch clone using React -4

Photo by Paul Basel from Pexels

Welcome to Part-4 of the series. You can find part-3 here.

We will start implementing streams in our project.

Our Structure

We will now setup the API Server. Now, open the terminal and goto your streams folder. Here create a new folder api and cd into it.

api folder

Now type npm init in the command line. It will ask you for details of many things. Press enter for each of them.

npm init

At the end it will show the package.json structure and ask for our permission. Type yes in it.


Now, we have a package.json file inside our api folder. Now, we will install the npm package json-server.


You can read the rest of the article from my blog site. The link for the same is below -

You can find code till this point here.You can find Part-5 here.



Founder TWD, JavaScript & ReactJS Trainer, Youtuber, Blogger

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store