All language subtitles for 036 Deploying Our App_en

af Afrikaans
sq Albanian
am Amharic
ar Arabic Download
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
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,750 --> 00:00:07,660 Now that we've created our card component, our card list component and our search box component, we're 2 00:00:07,660 --> 00:00:10,850 pretty much done with the most of the functionality in this application. 3 00:00:11,320 --> 00:00:13,960 The only thing we're missing is a little bit of styling. 4 00:00:14,830 --> 00:00:20,950 So the first thing we need is to add this title, and I'm just going to add it as an H1 here at the 5 00:00:20,950 --> 00:00:21,950 top of our approach. 6 00:00:22,610 --> 00:00:23,070 Well. 7 00:00:23,500 --> 00:00:24,430 This is Rolodex. 8 00:00:27,860 --> 00:00:32,600 And then we need that font, because you'll see that we don't have this font now, this font we can 9 00:00:32,600 --> 00:00:35,420 get from Google fonts, fonts, Google dotcom. 10 00:00:36,880 --> 00:00:43,330 And we can see all these different fonts that Google allows us to use in our project, so I'm just going 11 00:00:43,330 --> 00:00:45,290 to find the one we want Bigelow rules. 12 00:00:45,760 --> 00:00:47,020 I'm going to hit this little plus. 13 00:00:47,500 --> 00:00:55,390 And Google gives us a link that we can add to our index that HTML inside of our head. 14 00:00:56,640 --> 00:01:02,070 We just add it at the bottom here and now we have access to Bigelow rules in our project. 15 00:01:04,250 --> 00:01:11,420 Now, if we go to aftertax us, I'm going to add a new rule for H1 and I'm going to say font family 16 00:01:11,840 --> 00:01:13,100 is big yellow rule. 17 00:01:18,340 --> 00:01:23,650 I'm also going to set the font size to seventy two pixel and the color. 18 00:01:25,470 --> 00:01:31,620 And now if we look, we'll see that our project has the same font now, which is really awesome because 19 00:01:31,620 --> 00:01:33,760 Google has this great fanservice for us. 20 00:01:34,650 --> 00:01:39,890 So now what we need is the background, the background we're going to put into our index that success. 21 00:01:40,140 --> 00:01:43,220 And this is a file that gets generated by create react. 22 00:01:44,100 --> 00:01:50,630 The reason why they've already added the styling to the body and the code is because Create React app 23 00:01:50,640 --> 00:01:56,190 wants the exact same base styling across all browsers. 24 00:01:56,490 --> 00:02:02,370 So different browsers might run different things, like a different font or a different margin or padding. 25 00:02:02,670 --> 00:02:09,270 So create react app is just trying to equalize that when the project starts by inside of this body, 26 00:02:09,479 --> 00:02:14,220 we're just going to add this linear gradient to our background. 27 00:02:16,750 --> 00:02:19,660 And you can make any gradient you want, I just made this one. 28 00:02:21,430 --> 00:02:22,190 And we'll see. 29 00:02:22,510 --> 00:02:29,860 Our project is finished just like that, we've built a project that has filtering and we understand 30 00:02:29,860 --> 00:02:31,750 now how components are created. 31 00:02:32,850 --> 00:02:38,550 Now that we finished building our website, it's actually not live yet, but we can actually host this 32 00:02:38,550 --> 00:02:41,120 really easily using GitHub pages. 33 00:02:41,790 --> 00:02:46,470 So create React App has made it really easy to use the GitHub page of service. 34 00:02:46,860 --> 00:02:52,620 And GitHub lets us host static websites for free, which is really awesome. 35 00:02:52,830 --> 00:02:54,320 And it's actually really easy. 36 00:02:54,330 --> 00:02:56,370 There's just a couple steps we've got to take. 37 00:02:56,880 --> 00:03:00,030 The first one we've got to do is we have to go to GitHub. 38 00:03:03,600 --> 00:03:05,760 And then we have to make a new repository. 39 00:03:07,760 --> 00:03:12,110 Now I'm going to name my repository Monsters Rolodex after our project. 40 00:03:15,180 --> 00:03:19,440 And then I'm going to copy this key, this S.H. key right here. 41 00:03:20,620 --> 00:03:21,850 I'm going to go to our terminal. 42 00:03:22,920 --> 00:03:30,800 And then I'm going to do two things first, I'm going to connect our actual project to that repository 43 00:03:30,810 --> 00:03:35,460 we just made by doing gett remote, add Oregon. 44 00:03:36,540 --> 00:03:44,430 And then that key we copied next, I'm going to actually include the pages package by doing yarn, add 45 00:03:44,520 --> 00:03:45,960 G.H. pages. 46 00:03:49,660 --> 00:03:54,490 Next, I'm going to go to our package that on file and I'm going to do two things. 47 00:03:55,580 --> 00:03:59,240 The first thing I'm going to do is I'm going to add. 48 00:04:01,400 --> 00:04:02,210 Homepage. 49 00:04:03,000 --> 00:04:07,380 I'm going to actually type in https, dash, dash. 50 00:04:08,720 --> 00:04:15,770 Zeng EOWA, which is the name of my GitHub username, so you're going to use your GitHub username here 51 00:04:16,160 --> 00:04:17,630 and you're going to do GitHub. 52 00:04:19,579 --> 00:04:26,810 And then the name of the project that we made on GitHub, the name of that repository for me, it's 53 00:04:26,810 --> 00:04:29,030 monster's Rolodex, the one we just created. 54 00:04:31,110 --> 00:04:35,460 Then I'm going to add two scripts, the first one is called Pre Deploy. 55 00:04:37,010 --> 00:04:42,470 And in this principle, I'm just going to call Bild because as we remember, our build script builds 56 00:04:42,470 --> 00:04:46,190 all of our reachout into the final code that our browser needs. 57 00:04:46,940 --> 00:04:49,100 And then I'm going to call deploy. 58 00:04:49,790 --> 00:04:54,770 And this one I'm going to say pages Dashty build. 59 00:04:56,770 --> 00:05:03,100 Now, this is going to run pre deploy before it runs deploy, which is really awesome because NAPM and 60 00:05:03,100 --> 00:05:09,450 Yarn both know to run any script that you have pre with before you run the actual script. 61 00:05:10,180 --> 00:05:14,140 So it's going to run pre deploy before it runs deploy and then it's going to serve up. 62 00:05:14,140 --> 00:05:15,360 That's working on a project. 63 00:05:16,030 --> 00:05:17,980 Now we're going to go back to our terminal. 64 00:05:19,120 --> 00:05:22,600 And then we're going to run our new deploy script. 65 00:05:24,260 --> 00:05:30,860 And now we actually see it runs our pre deploy script first, and then we're going to see that it actually 66 00:05:30,860 --> 00:05:32,990 runs our deploy script right after. 67 00:05:34,140 --> 00:05:39,420 Now, this is going to build all of our project files that we need for the final project, and then 68 00:05:39,420 --> 00:05:40,200 we're going to add. 69 00:05:41,540 --> 00:05:47,570 And then we're going to write a common message adding files for GitHub pages. 70 00:05:48,720 --> 00:05:50,390 And now we're going to push this up. 71 00:05:53,160 --> 00:05:59,880 So once this is all pushed up now to our final project repository, we're going to go back to our GitHub 72 00:06:00,510 --> 00:06:02,390 and we're going to refresh right. 73 00:06:02,490 --> 00:06:08,370 And that we should see all our files in here and if we now go to the settings. 74 00:06:10,300 --> 00:06:15,610 And when we scroll down, we want to make sure that the source is actually pointing to GitHub pages 75 00:06:15,610 --> 00:06:17,420 branch, if you're just pointing to M.. 76 00:06:17,620 --> 00:06:19,650 Just make sure to set it to GitHub pages branch. 77 00:06:20,260 --> 00:06:21,790 And now if we go to our link. 78 00:06:22,860 --> 00:06:29,400 We see our website is live, it's actually served up this URL, and that's awesome, because GitHub 79 00:06:29,400 --> 00:06:33,750 lets us serve these static websites for free very easily and very quickly. 80 00:06:34,350 --> 00:06:41,970 And you can see how if you wanted to build a quick static website using react, it's really easy to 81 00:06:41,970 --> 00:06:47,200 build it and then serve it using create react app and GitHub pages. 82 00:06:48,120 --> 00:06:55,380 Now, when we actually build our final application, which is a very more dynamic e-commerce website, 83 00:06:55,950 --> 00:07:02,030 we're going to actually use databases and we're going to leverage a lot more code that won't get help, 84 00:07:02,040 --> 00:07:03,590 won't be enough for us to serve. 85 00:07:03,900 --> 00:07:08,430 And I'm going to show you how we're going to take all of these things that we learned building this 86 00:07:08,430 --> 00:07:12,600 application and then expand upon them in that lesson. 87 00:07:14,040 --> 00:07:20,910 So I hope you enjoyed this and look forward to building your first big REAC project. 8658

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