All language subtitles for 5. Environment Setup

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian Download
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:01,100 --> 00:00:01,880 All right. 2 00:00:01,910 --> 00:00:08,420 Now that you have all the information out of the way it's time to finally start doing some stuff. 3 00:00:08,420 --> 00:00:11,220 So we're going to start setting up the environment. 4 00:00:11,250 --> 00:00:19,640 We're going to be developing in for our first project that's going to start of course with node J.S.. 5 00:00:19,720 --> 00:00:27,100 So since this is an intermediate course and I do expect you to already have basic react knowledge I 6 00:00:27,100 --> 00:00:30,760 do also expect that you have a node environment set up. 7 00:00:31,110 --> 00:00:38,080 But I just want to go over the versions that I'm using currently and how you can go get the latest version 8 00:00:38,080 --> 00:00:40,640 for yourself. 9 00:00:40,640 --> 00:00:41,090 All right. 10 00:00:41,120 --> 00:00:49,640 So if you're at the terminal for Mac or the command line for windows on either one you're just going 11 00:00:49,640 --> 00:00:54,890 to type node space dash V. 12 00:00:54,890 --> 00:01:00,680 And that's going to if you have node installed output the version that you have currently installed 13 00:01:01,190 --> 00:01:08,720 so you can see the I'm right now running Version 10 dot sixteen dot 3 which is the current at the time 14 00:01:08,720 --> 00:01:14,270 of recording if you're not running ten sixteen dot three. 15 00:01:14,270 --> 00:01:15,680 Like I just showed. 16 00:01:15,680 --> 00:01:19,610 Or a later version that has come out since I recorded this. 17 00:01:19,670 --> 00:01:28,250 I suggest that you go to this page node J.S. dot org slash e n slash download or it might be a different 18 00:01:28,250 --> 00:01:30,260 U.R.L. if you're in a different country. 19 00:01:30,260 --> 00:01:37,760 So just start with node J.S. dot org and then look for the Downloads tab and there you'll be able to 20 00:01:37,760 --> 00:01:44,000 find the installer package for whichever system you need and that will also come with the newest version 21 00:01:44,000 --> 00:01:45,130 of NPM. 22 00:01:45,260 --> 00:01:51,660 And that should really be all you need to get started with node after you've made sure that you're running 23 00:01:51,660 --> 00:01:53,570 a compatible version of node. 24 00:01:53,670 --> 00:01:59,640 You can move on to the next step and install the next dependency which is create react up. 25 00:01:59,700 --> 00:02:07,020 So that is the framework which is going to provide all the boilerplate necessary to get our project 26 00:02:07,080 --> 00:02:13,350 up and running all of the things behind the scenes that make react work like web pack and babble and 27 00:02:13,350 --> 00:02:19,770 all of that stuff is prepackaged in and create react up and it makes it really easy to just immediately 28 00:02:19,770 --> 00:02:26,130 get started although again since you do have passed react experience I'm sure that you're familiar with 29 00:02:26,130 --> 00:02:36,490 this so we don't actually have to install create react app you can just run it here using the NDP X 30 00:02:36,640 --> 00:02:44,550 create dash react dash app space and then the title of the app that you want to create. 31 00:02:44,740 --> 00:02:54,520 And when you press enter that will use NPM MP X to run the create react app process without actually 32 00:02:54,520 --> 00:03:03,720 having to have installed the explicitly NDP X comes with NPM 5.2 and higher as it says right there. 33 00:03:03,730 --> 00:03:10,210 So since we just made sure that we updated to the newest version of node that includes a version of 34 00:03:10,210 --> 00:03:13,770 NPM that is compatible with NDP x. 35 00:03:13,780 --> 00:03:19,620 So this is all you have to do to get started and we're going to go ahead and do that right now. 36 00:03:19,660 --> 00:03:20,020 OK. 37 00:03:20,020 --> 00:03:25,270 So at our terminal we're going to want to make sure that we're in a directory where you want to make 38 00:03:25,270 --> 00:03:26,090 your project. 39 00:03:26,170 --> 00:03:34,810 So I'm going to change into my documents directory and I'm going to create the project here although 40 00:03:34,810 --> 00:03:40,250 it doesn't matter where you create the project as long as it's somewhere that you're not going to forget. 41 00:03:40,660 --> 00:03:45,490 Once you're in a directory that you're ready to build the project in all you have to do is enter that 42 00:03:45,490 --> 00:03:59,290 command and P X create react app and then we're going to title this app arc development and then hit 43 00:03:59,320 --> 00:04:00,240 enter. 44 00:04:00,580 --> 00:04:06,390 And that's going to run for a little while and as soon as that's finished we'll be good to go. 45 00:04:06,430 --> 00:04:07,060 All right. 46 00:04:07,060 --> 00:04:12,820 And if everything was successful then you'll end up at this screen and it'll tell you where you've created 47 00:04:12,820 --> 00:04:17,120 the project and then it tells you how you can go ahead and get started. 48 00:04:17,140 --> 00:04:27,340 So we are going to change into that directory that we just created and started the project and this 49 00:04:27,340 --> 00:04:29,320 should open up a browser window 50 00:04:36,410 --> 00:04:41,300 and here we are at the familiar create react app loader. 51 00:04:41,330 --> 00:04:48,500 So if you've made it this far you are all set and you're on track to get started with material UI. 52 00:04:48,500 --> 00:04:54,890 There is actually one last dependency that we have to get set up before we can get material UI installed 53 00:04:54,920 --> 00:04:57,200 and officially be started with our app. 54 00:04:57,470 --> 00:05:05,780 And that is react router and that is going to provide the navigation for our app and give us the ability 55 00:05:05,780 --> 00:05:14,130 to simulate navigating to different pages within a single page application. 56 00:05:14,150 --> 00:05:17,520 So here is the documentation for react louder. 57 00:05:17,570 --> 00:05:24,050 You can find it at this you URL and it's pretty basic to get started. 58 00:05:24,080 --> 00:05:32,480 All we really have to do right now is enter this command right here the NPM install. 59 00:05:32,540 --> 00:05:38,720 So once we get that installed then we'll go in and I'll talk later about getting our router set up and 60 00:05:38,720 --> 00:05:47,870 our routes and how this is going to provide navigation for our application so here we are back at the 61 00:05:47,900 --> 00:05:51,020 terminal or on Windows your command line. 62 00:05:51,140 --> 00:05:58,850 And if you still have the development server running you can go ahead and stop that with command C or 63 00:05:58,880 --> 00:06:04,310 control C actually on the Mac and on Windows it's control C as well. 64 00:06:04,340 --> 00:06:11,780 So once you have the stopped and you're in the directory of the project that we created you can go ahead 65 00:06:11,810 --> 00:06:22,490 and type in the NPM install stress save react dash router dash Dom. 66 00:06:22,700 --> 00:06:30,140 And once you get that finished that will have the library installed and we'll be ready to go if you 67 00:06:30,140 --> 00:06:31,450 see these warnings here. 68 00:06:31,460 --> 00:06:36,410 Don't worry it's just saying that it's missing some type script dependencies but we're not going to 69 00:06:36,410 --> 00:06:37,160 get into that. 70 00:06:37,160 --> 00:06:43,520 So that shouldn't be a problem as long as you see the plus react router Dom here. 71 00:06:43,520 --> 00:06:52,540 Then everything was successful that just leaves material UI itself obviously which is just as easy to 72 00:06:52,540 --> 00:06:55,170 set up as all of the rest of the packages. 73 00:06:55,270 --> 00:07:01,930 But we're actually going to go in after that and try out one of the components to make sure that everything 74 00:07:01,930 --> 00:07:08,020 is setup correctly and also to give you your first taste of the library and start kind of dipping your 75 00:07:08,020 --> 00:07:13,930 toes in the water before we dive into our project in the next section. 76 00:07:13,930 --> 00:07:21,610 Here we are at the material UI documentation page which you can find at this U.R.L. and this is actually 77 00:07:21,610 --> 00:07:28,810 the getting started and installation section and you can see here that all we have to do is again npm 78 00:07:28,810 --> 00:07:36,910 install it can get that selected then we actually do have to set up the fonts by including this link 79 00:07:36,940 --> 00:07:39,100 in our HCM mail file. 80 00:07:39,100 --> 00:07:48,690 So let's copy this link and then we'll go and get material UI installed so here we are in our project 81 00:07:48,690 --> 00:08:00,690 directory and we're going to install material UI with the command npm install dash dash save add material 82 00:08:01,440 --> 00:08:05,420 dash UI slash core. 83 00:08:05,460 --> 00:08:06,830 So this is important. 84 00:08:06,840 --> 00:08:17,130 It's not just install material UI it's install at material dash UI slash core. 85 00:08:17,400 --> 00:08:19,350 So then go ahead and hit enter. 86 00:08:19,350 --> 00:08:23,680 And that's going to install all the files that we need. 87 00:08:23,850 --> 00:08:26,850 And we'll wait for this to finish up 88 00:08:30,650 --> 00:08:32,470 didn't take very long at all. 89 00:08:32,720 --> 00:08:38,440 And now we're going to go ahead and open up our project in your code Ed.. 90 00:08:38,710 --> 00:08:48,680 And which I can do here just by typing that but open up your project folder any way that you are able 91 00:08:50,420 --> 00:08:56,180 and once that gets loaded up we are ready. 92 00:08:56,210 --> 00:09:02,720 So under the public file that's here we can see this indexed to each. 93 00:09:03,020 --> 00:09:16,670 And here we are going to include right under here that style C link the connects the Google font rubato 94 00:09:17,030 --> 00:09:24,460 to the application which is the default font for material UI and that should be all we need to do. 95 00:09:24,490 --> 00:09:31,040 And so we save to make sure that material UI is all set up. 96 00:09:31,040 --> 00:09:42,530 So we're going to go over here to our source folder and into the app J.S. file and at the top we're 97 00:09:42,520 --> 00:09:46,030 going to type some code here and it's OK if you don't understand it yet. 98 00:09:46,040 --> 00:09:51,740 I'm going to go over all and more detail later but just to make sure that everything is set up and working 99 00:09:51,770 --> 00:09:54,590 and to see material UI in action. 100 00:09:54,740 --> 00:10:14,280 Let's go ahead and import button from app material UI slash core slash button with a capital B Ok so 101 00:10:14,280 --> 00:10:25,290 make sure that you have that correct and then go down to this paragraph tag and let's do right underneath 102 00:10:25,290 --> 00:10:26,350 that paragraph tag. 103 00:10:26,370 --> 00:10:33,240 Let's do a button with a variant of contained 104 00:10:35,990 --> 00:10:45,170 in the closing tag and then inside the button time click me OK. 105 00:10:45,270 --> 00:10:50,140 So we're going to save that and we can just ignore this. 106 00:10:50,140 --> 00:10:55,160 So it's like my yes lint is having a problem I'll fix fixed later. 107 00:10:55,620 --> 00:11:02,070 And you can also probably notice mine set of if you're using atom is a little bit different because 108 00:11:02,070 --> 00:11:07,620 I have plugins installed to style the code as well as to give me extra icons over here. 109 00:11:07,710 --> 00:11:13,530 So if yours doesn't look exactly the same colors and stuff that's OK obviously but make sure you have 110 00:11:13,530 --> 00:11:19,950 that little piece of code right in there and save your file and then flip back over to your terminal 111 00:11:20,010 --> 00:11:25,740 where you're in your project directory and let's go ahead and NPM start that development server backup 112 00:11:26,250 --> 00:11:32,440 which will throw us back into the browser and once this reloads 113 00:11:35,090 --> 00:11:40,190 boom you have a little button that says Click me on it and you can go ahead and cook it and you see 114 00:11:40,190 --> 00:11:48,610 it's got that nice little button ripple effect and that right there is your first material UI with react 115 00:11:48,640 --> 00:11:50,460 J.S. Project. 116 00:11:50,530 --> 00:11:53,950 So I'm really excited for you guys to take this course. 117 00:11:53,960 --> 00:12:00,910 I'm so glad that you've made it all this way through and I think that you are going to learn a ton throughout 118 00:12:00,910 --> 00:12:01,880 this project. 119 00:12:01,930 --> 00:12:09,650 There is really just going to change or development skills and take it to the next level so if you are 120 00:12:09,650 --> 00:12:15,290 ready for that event and ready set go and I'll see you in the next section. 13461

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.