Create a twitch clone using React -4

Image for post
Image for post
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.

Image for post
Image for post
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.

Image for post
Image for post
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.

Image for post
Image for post
npm init

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

Yes

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

Image for post
Image for post
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.

Written by

UI Lead- ReactJS, JavaScript and everything in-between.

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