Build a Chat App - React Tutorial Course

  Рет қаралды 214,119

freeCodeCamp.org

freeCodeCamp.org

Күн бұрын

Пікірлер: 127
@iHavo
@iHavo 4 жыл бұрын
Unbelievably well-done tutorial. I love this
@cafeleche
@cafeleche 4 жыл бұрын
LOVE SCRIMBA SO MUTCH!!!!! :-) :-) :-)
@anjanasinha8035
@anjanasinha8035 4 жыл бұрын
You explained this chat app really welll, thanks
@DuyTran-ss4lu
@DuyTran-ss4lu 4 жыл бұрын
Incredible! This is a gift for God for sure
@rajatsharma6137
@rajatsharma6137 3 жыл бұрын
this guy knows how to teach..
@quicktuts1259
@quicktuts1259 3 жыл бұрын
It would be nice to see the same course but with React hooks and an alternative to Pusher's Chat-api
@AP-no6uc
@AP-no6uc 3 жыл бұрын
you can do a practice by yourself and transform this app into one that uses hooks, for example instead of lifecycle try useEffect and for the class component use functional components with useState hook, it will be a good practice to see how much they simplify things.
@ljiljanmaksimovic1400
@ljiljanmaksimovic1400 4 жыл бұрын
It seems that Pusher doesn't support Chatkit anymore. Is there any similar replacement for it, so one could follow the course? thx
@ShubhamKumar-sq2pg
@ShubhamKumar-sq2pg 3 жыл бұрын
You could use socket.io
@rohandeysarkar8443
@rohandeysarkar8443 5 жыл бұрын
the messages are not showing on the mini browser of scrimba. But they can be seen on the chatkit console rooms, on the chatkit website.
@rosep5044
@rosep5044 6 жыл бұрын
Hi Per) Thanks a lot - really cute and clear explanation!
@greenarrow6689
@greenarrow6689 5 жыл бұрын
Great work !!!!! carry one
@CodeGoblin
@CodeGoblin 6 жыл бұрын
Out of curiosity, why is this not using ES2015 in places like getting rid of the constructor and super in the class? To my knowledge it is no longer required to bind "this" to the class.
@darknevin
@darknevin 6 жыл бұрын
good question, i hope he replies
@stiforr8714
@stiforr8714 6 жыл бұрын
Classes were created in ES2015(ES6). I'm still learning this but, at least in React, the constructor is required when using "this". This isn't something specific to Javascript or React. Although, "this" is slightly different in Javascript. In the scope of React, constructor is used to initialize "state", fields (this.state or this.variable) and calling the parent constructor (super()) because we are extending React.Component and we need it's constructor as well. Check out a the official docs for a much better explanation :D reactjs.org/docs/state-and-lifecycle.html
@CodeGoblin
@CodeGoblin 6 жыл бұрын
I was watching this tut where he mentioned that constructor(super) was deprecated, and he showed use of state along with "this" without it kzbin.info/www/bejne/aGGXdGyvg8qCj6s I am by no means an expert in react tho, just find it all odd lol.
@stiforr8714
@stiforr8714 6 жыл бұрын
It is odd. Using a constructor is certainly not deprecated. I'll take a look at the video though.
@stiforr8714
@stiforr8714 6 жыл бұрын
Ok so I watched the video and I think I found the part where you were referring to. He actually isn't saying having a constructor is deprecated. He's saying that binding "this" is not required as of React v16. Now you can use arrow functions which implicitly allow use of the "this" keyword instead of binding it in the constructor. There are situations where you would still bind "this" but they are rare.
@jalasem
@jalasem 6 жыл бұрын
Amazing! awesome
@vampirejs758
@vampirejs758 3 жыл бұрын
Can you build the same app using vuejs or svelte
@Justin_Min_001
@Justin_Min_001 4 жыл бұрын
I had to install @pusher/chatkit-client instead of @pusher/chatkit to make this work.
@AbhishekKumar-mq1tt
@AbhishekKumar-mq1tt 6 жыл бұрын
Thank u for this awesome video
@pitchblackc0d314
@pitchblackc0d314 5 жыл бұрын
I cant even link the SDK, this tutorial is incomplete, ur missing so many steps, you cant expect is to know what ur doing already, my brain is stressed out now :(
@betulmervekenan9553
@betulmervekenan9553 5 жыл бұрын
Heeeiiyyyy! Thank you.
@serkanakman9945
@serkanakman9945 5 жыл бұрын
Sorry but i am new in React I did everything but see no solution :Failed to load resource: the server responded with a status of 404 (Not Found)
@serkanakman9945
@serkanakman9945 5 жыл бұрын
index.pack.js not found
@salmanali-mv6xe
@salmanali-mv6xe 5 жыл бұрын
Im also facing the same issue 404 not found
@ishitakumar2206
@ishitakumar2206 5 жыл бұрын
I'm getting a "Cannot read property "CreateRoom" of Undefined. Can anyone tell me why this could be happening?
@arpit39agarwal
@arpit39agarwal 4 жыл бұрын
Does video explains the basics of react , JS and all ?
@abodmedia
@abodmedia 4 жыл бұрын
any replacement for pusher ?
@tomatomov9061
@tomatomov9061 4 жыл бұрын
In the beggining you are explaining like we are totaly new in React and suddenly we start from already built code ???
@mightymarlin
@mightymarlin 4 жыл бұрын
Followed the whole thing and it's not working. What IDE is this? I used imports and there are no errors but I don't have a dedicated "Dependencies" tab in code composer studio and since it's not working I'm wondering if that's why. Could anyone help please?
@ivanfrances8913
@ivanfrances8913 5 жыл бұрын
I can't get through "'Chatkit' is not defined no-undef" error...
@boi11197
@boi11197 6 жыл бұрын
Could you expand on the choice of using the spread operator when updating the state after a new message is emitted? You noted that you should limit state changes to the setState() method, but this.messages.push(message) would be occurring within that method. I'm not super experienced with React, or even JS for that matter, but intuitively it would seem like .push() would be somewhat more efficient than copying over the array of messages (again, I know that the scale here is super small, so efficiency isn't necessarily a huge concern). I just feel like I don't fully understand your reasoning in choosing one over the other. Thanks for the great tutorial by the way! I liked your presentation of the philosophies that go into designing an app like this through React.
@rooky102
@rooky102 4 жыл бұрын
pushing onto the state wouldn't cause the component to re-render, so it wouldn't show up on the DOM when you send, only after you refresh. setState is one of the few actions that trigger a re-render.
@patheally
@patheally 4 жыл бұрын
Chatkit has shut down. What would you suggest as an alternative?
@rishavkumar7537
@rishavkumar7537 4 жыл бұрын
Which ide they are using
@fr4781
@fr4781 4 жыл бұрын
Is this a stencil for an app or the actual code?
@dayanr.5950
@dayanr.5950 5 жыл бұрын
I don't understand, how do I build this project from scratch, should I use create-react-app, I am learning react and I do not understand this pretty well
@chicomigrania822
@chicomigrania822 5 жыл бұрын
Yup, for getting started, do use create-react-app
@abdulahad4934
@abdulahad4934 5 жыл бұрын
after using create-react-app, make folders and files like him manually.
@serkanakman9945
@serkanakman9945 5 жыл бұрын
@@abdulahad4934 how can i give npm run start no package.json around no scripts part
@nishmamaskey1093
@nishmamaskey1093 5 жыл бұрын
@@serkanakman9945 do 'cd/(your folder name- create-react-app "_yourfoldername__") first before npm start
@ratnabhrai2117
@ratnabhrai2117 6 жыл бұрын
have you uploaded the css file anywhere?
@nabloler
@nabloler 6 жыл бұрын
nice tut! Thank you. I have a question, what if we would like to add a token to every user so we could identify them, without the need to login or sign up?
@dennienguyenUX
@dennienguyenUX 5 жыл бұрын
I'm trying to develop this app locally using create-react-app and the css file is not rendering at all . The file structure of create-react-app is totally different to scrimba. Does anyone have a solution to this?
@nishmamaskey1093
@nishmamaskey1093 5 жыл бұрын
Replace all of your files from 'create-react-app' with the ones in here under new folder 'components'. Drag the components folder under 'src'. Create new 'style.css' and connect it under App.js. Works fine.
@ShankyBady
@ShankyBady 5 жыл бұрын
How do you get it to be interactive? I'm using Ubuntu 18.04 and I don't understand how it's interactive. :/
@yudisthirahadigustianda489
@yudisthirahadigustianda489 6 жыл бұрын
Is it possible to implement this app with Redux? If possible how to do it? thanks in advance
@saudalbalooshi2828
@saudalbalooshi2828 5 жыл бұрын
hey bro please tell me hoe to set this error "TypeError: this.addEntry is not a function (/node_modules/@pusher/chatkit/dist/web/chatkit.js:1)" Or any body else who know how to correct this error tell me please...../..
@nademmahmodreyal4192
@nademmahmodreyal4192 4 жыл бұрын
Unbelievable, well
@danialarshad92
@danialarshad92 4 жыл бұрын
I heard that chatkit is no longer available. What should I do in that case?
@adityapathania2443
@adityapathania2443 4 жыл бұрын
Try Talkjs its very similar.
@danialarshad92
@danialarshad92 4 жыл бұрын
@@adityapathania2443 Thanks bruh👍
@galaxic_
@galaxic_ 4 жыл бұрын
I want the source code, can you give them?
@vincebartle
@vincebartle 4 жыл бұрын
look up scrimba great chat kit
@windbreezetv
@windbreezetv 5 жыл бұрын
Can someone explain to me how did he run the chat in the terminal? I know how to do with express but not with just the react command lines. Thanks
@serkanakman9945
@serkanakman9945 5 жыл бұрын
I have the same problem Help pls
@ashleyadrias
@ashleyadrias 4 жыл бұрын
pusher is discontinuing chatkit, what else can we use?
@adityapathania2443
@adityapathania2443 4 жыл бұрын
Try Talkjs its very similar.
@murtujakavantwala5135
@murtujakavantwala5135 4 жыл бұрын
whre i can find the code of this tutorial ?
@sourabhdubey2668
@sourabhdubey2668 6 жыл бұрын
Can i use Chatkit Free of Cost. Their is no any limitations???????
@rachelmatthew6771
@rachelmatthew6771 6 жыл бұрын
CSS doesnt work locally. Someone please help.
@nishmamaskey1093
@nishmamaskey1093 5 жыл бұрын
check the path
@azizrakhim5647
@azizrakhim5647 Жыл бұрын
Why not include GitHub link?
@mahabubelahi7390
@mahabubelahi7390 6 жыл бұрын
Hello, I want to know more about the IDE.
@SF-yd9cl
@SF-yd9cl 6 жыл бұрын
thanks
@kirubelgizaw3672
@kirubelgizaw3672 4 жыл бұрын
where do i get the css's that u used
@DataDevWorld
@DataDevWorld 6 жыл бұрын
Hello. Thanks for the video but could you try to be more explanatory, you are moving so fast I can hardly comprehend how you set up the chat manager
@sarcaastech
@sarcaastech 4 жыл бұрын
cant find chatkit anywhere!
@lagiator
@lagiator 5 жыл бұрын
helpful :)
@arpitkesharwani6851
@arpitkesharwani6851 4 жыл бұрын
Chatkit isn't working
@junedkhatri9342
@junedkhatri9342 5 жыл бұрын
I've downloaded the zip file from the course, Can anyone tell me what is the next step? How do I run the app?
@amirmohamadbashiri
@amirmohamadbashiri 4 жыл бұрын
In your app folder run npm install and then npm start to start the app
@phamthao5421
@phamthao5421 6 жыл бұрын
How i can download html + css version of this course ? Thanks!
@AaronC009
@AaronC009 6 жыл бұрын
Hi ! Im just a bit confused. I can add users to a room through chatkit and have that username post a message. But how do i do this through the app without going through the chatkit website? Should there be a signup screen before you enter the app or is there a way to type in your username through the app itself ?
@AaronC009
@AaronC009 6 жыл бұрын
right now once deployed i cant use a different username on a second client
@shivammaheshwari6388
@shivammaheshwari6388 6 жыл бұрын
You have to use Chatkit API for creating users. Send the post request to /users with name and id (required) using axios or fetch whatever you like. Read more at docs.pusher.com/chatkit/reference/api#users. I personally find easier to communicate with API rather than Client sdk.
@SudoNitro
@SudoNitro 5 жыл бұрын
too any peoplehaving issues i spent 3 hours searchingforums to get this up too date follow these steps step one update your room id with "roomidnumber", example code subscribeToRoom(roomId) { this.setState({ messages: [] }) this.currentUser.subscribeToRoom({ roomId: "your code here", this is found on line 57 change dependacy from @pusher/chatkit too @pusher/chatkit-client click settings wheel near project name and >add dependacy remove old one @pusher/chatkit change line 2 of app.js too import Chatkit from '@pusher/chatkit-client' also right click and upgrade react dependencys download zip after u do this and cd too the directory in cmd and run npx react-codemod rename-unsafe-lifecycles to clean up old source lines this will solve your errors
@mightymarlin
@mightymarlin 4 жыл бұрын
Thank you for this, what IDE is it?
@declineed5798
@declineed5798 4 жыл бұрын
Can you put the script in the description
@Bluespoose
@Bluespoose 6 жыл бұрын
Hey great video but I need help please! I locally created a react app and copied the files from the fourth video on scrimba and I got the four items to render. But it isn't in the nice format that it is on scrimba. It is just a list, thank you so much for any help!
@rachelmatthew6771
@rachelmatthew6771 6 жыл бұрын
Hey, I am encountering same situation. CSS is not really working and I cant get it to work. Everything else is pretty good but design is a problem. Have you figured it out?
@abdulahad4934
@abdulahad4934 5 жыл бұрын
@@rachelmatthew6771 Copy his style.css data to your css file and also introduce normalize.css file. After that include both of them to index.html file in public directory and the game begins!
@rachelmatthew6771
@rachelmatthew6771 5 жыл бұрын
@@abdulahad4934 thanks for the reply. I tried that beforehand and got it. Thank you for the help! 😀
@zamokuhlethwala9815
@zamokuhlethwala9815 5 жыл бұрын
@@rachelmatthew6771 I also encountered the same problem, please can you elaborate how can I do what's written above.
@zamokuhlethwala9815
@zamokuhlethwala9815 5 жыл бұрын
@@abdulahad4934 I also encountered the same problem, please can you elaborate on what you are saying.
@mikelees18
@mikelees18 6 жыл бұрын
Can we use .bind
@mafineeek
@mafineeek 4 жыл бұрын
Go for beer with me, big thanks
@coffee_n_art
@coffee_n_art 4 жыл бұрын
You should write the code without just explaining the already written code. BDW Nice video.
@focusonthebeat6888
@focusonthebeat6888 5 жыл бұрын
When I go into instances on chatkit there is no scrimba-chatkit-course. Is there a way to fix that?
@nicolasazoidis9064
@nicolasazoidis9064 5 жыл бұрын
I believe you've already found the solution but if not, you need to create your own instance and name it however you like.
@AustinChabaud
@AustinChabaud 5 жыл бұрын
Play the video at 1.25 sounds much better
@freestyle8886
@freestyle8886 5 жыл бұрын
is everything in the video still up to date?
@AustinChabaud
@AustinChabaud 5 жыл бұрын
@@freestyle8886 yea it works fine
@franciscatv2512
@franciscatv2512 5 жыл бұрын
i don't understand how to find codemix
@greenarrow6689
@greenarrow6689 5 жыл бұрын
Scrimba is very promising..
@Gold_Stone
@Gold_Stone 5 жыл бұрын
can you share CSS file?
@audiohub2
@audiohub2 6 жыл бұрын
where can i get this project file to learn?
@freecodecamp
@freecodecamp 6 жыл бұрын
All the code is here: scrimba.com/g/greactchatkit
@rishavkumar7537
@rishavkumar7537 4 жыл бұрын
@@freecodecamp yes please provide the code and tell me the platform you are using for coding
@manumohanan8226
@manumohanan8226 4 жыл бұрын
What's the alternative to ChatKit? It seems ChatKit has come to end of life.
@davidsabillon7380
@davidsabillon7380 4 жыл бұрын
I just know thaht :( And i´ll go to make this app. It´s a shame!
@adityapathania2443
@adityapathania2443 4 жыл бұрын
Try Talkjs its very similar.
@Typical_Abc
@Typical_Abc 5 жыл бұрын
Its worked But its kinda Hard To Use it Take 15 Hours To do this... I Called it Disk Off
@Damjan25
@Damjan25 6 жыл бұрын
1080p finally :)
@rohitrai4215
@rohitrai4215 5 жыл бұрын
Hey, I followed the whole tutorial and built my chat app, used bootstrap instead of CSS grid. Github screenshot link to my application github.com/rovit/chat-app/blob/master/screeshot/React%20App.png please have a look if you find the time. and let me know your feedback. I appreciate your work. Thank you so much and will check out more of Scrimba
@LucasHenrique-ne7go
@LucasHenrique-ne7go 4 жыл бұрын
Chatkit is dead :'(
@adityapathania2443
@adityapathania2443 4 жыл бұрын
Try Talkjs
@Rhaalis
@Rhaalis 4 жыл бұрын
@@adityapathania2443 Sorry. I guess it's been a long time since you commented but isn't TalkJS chargeable? I mean the version I can release not the demo?
@tyreelindsey2012
@tyreelindsey2012 4 жыл бұрын
can i pay someone to make a functioning chat app for me?
@ProSimples
@ProSimples 4 жыл бұрын
THIS TUTORIAL DONT TEACH YOU HOW TO INSTALL THE ENVIRONMENT!!!!!!!!!!!!!!!!!
@aliasgar.burhani1099
@aliasgar.burhani1099 4 жыл бұрын
just type 'npx create-react-app chatapp' in your command line and it will create a react app for you
@nishmamaskey1093
@nishmamaskey1093 5 жыл бұрын
I do not see Scrimba chat kit instance what do I do?
Best way to learn Socket IO | complex chat app
19:52
Hitesh Choudhary
Рет қаралды 124 М.
How to use TypeScript with React... But should you?
6:36
Fireship
Рет қаралды 947 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
I built a REAL Desktop App with both Tauri and Electron
12:22
Bufferhead
Рет қаралды 80 М.
Real-Time Chat App in ReactJS | ReactJS Projects
1:26:55
My Project Ideas
Рет қаралды 392
React Hooks Course - All React Hooks Explained
1:26:21
PedroTech
Рет қаралды 1,1 МЛН
Ollama Course - Build AI Apps Locally
2:57:24
freeCodeCamp.org
Рет қаралды 135 М.
Web Server Concepts and Examples
19:40
WebConcepts
Рет қаралды 265 М.
React Tutorial for Beginners
1:20:04
Programming with Mosh
Рет қаралды 3,6 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН