Node.js must be installed in your PC, to install nodejs visit.
After installing nodejs, follow the below instructions ⬇️.
Create an empty folder, name chat-app. clone both, client-side and server-side in the chat-app folder. now open client-side repository folder with terminal, and run the below command:
npm install
and then, open server-side repository folder with terminal, and run the below command:
npm install
Now, open the chat-app folder in your code editor and in client folder open chat component(Path: src/components/Chat/Chat.js). and comment out line:14 and uncomment line:15
then, open the server folder and open index.js and then at line:15 change the origins to http://localhost:3000/
Now you can start the app 🙂.
First we have to start our server. open server folder in your terminal and run:
npm start
then open client folder in your terminal and run:
npm start
now our application must be running on http://localhost:3000/, go and test the app 😃.