WEBVTT

00:05.010 --> 00:06.710
I everyone welcome back.

00:06.730 --> 00:13.070
So in this video we're going to be deploying the image classification API onto AWOS services.

00:13.090 --> 00:13.600
OK.

00:13.690 --> 00:16.890
So we can have our AP up and running on each of us.

00:16.900 --> 00:17.510
OK.

00:17.770 --> 00:18.610
So let's get started.

00:18.610 --> 00:22.290
So the first thing we want to do is to make a new account on each of us.

00:22.300 --> 00:28.440
So AWOS offered a one year for free as long as you're within there are requirements of usage.

00:28.450 --> 00:29.720
So they won't charge you.

00:29.830 --> 00:36.060
So we're going to do an account or a free account on AWOS and we're going to deploy our for remembering

00:36.070 --> 00:39.350
that we developed the misclassification API.

00:39.460 --> 00:42.000
We're going to deploy that API on this.

00:42.010 --> 00:48.400
So the first thing we're about to go is we're going to do E.W. this up just on Google and you're going

00:48.400 --> 00:50.300
to go sign up for us.

00:50.550 --> 00:51.060
OK.

00:51.130 --> 00:56.500
So here you're going to first impact your e-mail password and what you're e-mailing us.

00:56.510 --> 00:57.950
Can't name that you want.

00:58.150 --> 01:02.360
So for now I'm just going to pause and then I'm going to enter my credentials.

01:02.360 --> 01:05.340
I'm going to click continue and I'm going to come back.

01:05.620 --> 01:09.210
So I'll come back once if and is that OK.

01:09.230 --> 01:10.600
So welcome back.

01:10.910 --> 01:17.450
So the second thing that I'm going to do I'm going to change and change once I click Continue much change

01:17.450 --> 01:21.010
this to a personal account because this is not a professional camera.

01:21.020 --> 01:23.350
This is not a organization that counts.

01:23.360 --> 01:29.130
I'm going to choose the personal account and then I write my full name here my phone number.

01:29.140 --> 01:36.500
We're going to change the country and the address city state and province and postal codes.

01:36.650 --> 01:41.150
And then I'm going to check this code over here and I'm going to create and continue.

01:41.390 --> 01:44.960
So love to feel these information now on what caused the video.

01:44.960 --> 01:48.500
And once I feel them and you want to fill them too if you want.

01:48.500 --> 01:52.430
Then you can come back and we can see where we are where we can go from there.

01:52.430 --> 01:53.090
OK.

01:54.800 --> 01:56.180
OK so welcome back.

01:56.330 --> 02:02.300
So now what is going to happen is you're going to choose your billing address and then you're going

02:02.300 --> 02:04.590
to input your credit card from Egypt.

02:04.670 --> 02:09.520
And it says here please type your payment information so we can verify your identity.

02:09.530 --> 02:15.530
We will not charge you unless your usage exceeds the AWOS freak to your limits.

02:15.530 --> 02:21.110
If you open this link here you're going to see what all the things you're allowed to do and not allowed

02:21.110 --> 02:21.720
to do.

02:21.890 --> 02:26.500
So the A.W. asked for two years allows you twelve months for free.

02:26.630 --> 02:27.250
OK.

02:27.470 --> 02:32.450
So 12 months for free can you can have the Amazon API gateway.

02:32.600 --> 02:38.090
You know you have 50 gigabytes of Amazon cloud and you have a lot of these.

02:38.090 --> 02:42.320
You have 750 hours per month off Amazon.

02:42.310 --> 02:45.410
Easy to do so if we calculate how much this is.

02:45.520 --> 02:47.810
So if I perhaps get a calculator.

02:47.900 --> 02:51.110
And then she calculate that ends up being.

02:51.530 --> 02:56.020
Let's see if we can get the calculator here in time.

02:56.300 --> 03:04.100
So 7 it is basically going to be 750 divided by 30 on average so that strange the calculator is not

03:04.100 --> 03:05.590
working for some reason.

03:05.580 --> 03:06.300
But OK.

03:06.360 --> 03:08.260
Anyway so we can just use Google.

03:08.300 --> 03:14.170
So 750 divided integrity is going to be a new 25.

03:14.190 --> 03:18.620
Okay so that's on average 25 hours a day.

03:18.650 --> 03:26.510
So that's why they need ashes 750 hours per day is more than 25 hours per day is more than 24 hours.

03:26.510 --> 03:26.940
Right.

03:26.960 --> 03:32.330
So this is enough to wear for the entire month as long as you're not you know abusing the system and

03:32.360 --> 03:33.560
using it a lot.

03:33.590 --> 03:34.410
OK.

03:34.850 --> 03:39.310
So these are all for free for 12 12 months.

03:39.530 --> 03:41.550
So that's pretty cool right.

03:41.930 --> 03:43.900
Let's go back to the AWOS.

03:44.060 --> 03:49.790
So when I input my credit card information and I'm going to come back in and see where we can go from

03:49.790 --> 03:50.080
there.

03:50.120 --> 03:50.990
OK.

03:51.560 --> 03:52.900
Everyone welcome back.

03:53.060 --> 03:57.920
So after you put your credit card information you know we're going to choose the basic plan which is

03:57.920 --> 03:58.470
for free.

03:58.500 --> 04:02.500
We're going to click on this basic plan and that's it.

04:02.500 --> 04:03.520
So we got it.

04:03.550 --> 04:04.850
We are now able to sign in.

04:04.850 --> 04:09.470
So I'm going to go here and I'm going to sign in to my column so

04:13.550 --> 04:18.090
I'm going to wait until it loads and then I'm going to quit my credentials so in this case I'm going

04:18.090 --> 04:19.150
to write my you know.

04:19.220 --> 04:23.140
So I'll stop here applause was here a comeback when I log in.

04:23.510 --> 04:23.800
OK.

04:23.800 --> 04:26.890
So welcome back so I've just logged in here.

04:27.320 --> 04:31.950
And yeah this is basically the console that we each we have.

04:31.970 --> 04:32.770
OK.

04:33.080 --> 04:37.160
OK so the next step we're going to do is we're going to launch a virtual machine.

04:37.160 --> 04:42.320
Easy two inches are going to click on services and then you're going to see all the services that Amazon

04:42.350 --> 04:42.900
offers.

04:43.010 --> 04:44.460
And we're going to choose easy too.

04:44.490 --> 04:45.100
OK.

04:45.200 --> 04:46.770
So I want to choose easy too.

04:46.880 --> 04:52.040
And we're going to launch a new easy to instance which is like a virtual machine that will that will

04:52.040 --> 04:53.120
host our Web site.

04:53.120 --> 04:53.690
OK.

04:53.870 --> 05:00.840
So I want to click on launch instance and then I want to go to A.W. so you can see here that they offer

05:00.840 --> 05:02.510
a lot of stuff here.

05:02.730 --> 05:11.290
You can choose from but I'm going to go to AWOS marketplace and then I'm going to write of buntu.

05:11.350 --> 05:14.240
And then let's say sixteen point four.

05:14.330 --> 05:19.290
Okay let's go with this latest version 18 for.

05:19.440 --> 05:23.950
So you can see here that it's a one to eighteen point of word.

05:24.000 --> 05:24.900
Okay.

05:24.900 --> 05:31.900
So I can download and this one is free for years to $0 for the software.

05:31.950 --> 05:39.440
So I'm just going to select that one and then I'm just going to go going to tell me about all of the

05:39.440 --> 05:43.560
stuff for example hourly rates and stuff like that.

05:43.760 --> 05:52.350
So I'm going to say OK continue our and since it's the Freet year then it shouldn't be any problems.

05:53.500 --> 05:55.130
And then for a year.

05:55.340 --> 06:02.460
We don't need too much stuff right we just need to a basic ones or just do a general purpose.

06:02.460 --> 06:04.210
The 901 we're going to.

06:04.300 --> 06:09.670
So we're going to choose this free tear illegible ones or the two that micro and then I'm just going

06:09.670 --> 06:12.960
to do a review and launch this.

06:12.990 --> 06:17.540
This is going to cost zero dollars are not going to be paying anything per hour.

06:17.550 --> 06:19.210
So there's no problems here.

06:19.380 --> 06:25.200
And once we're done we just launch and we're going to choose an existing beer or we're going to create

06:25.200 --> 06:25.590
an Uber.

06:25.590 --> 06:31.710
So you saying keep it consists of a public key that AWOS stores and a private key file that you store

06:32.130 --> 06:35.310
together they allow you to connect your instance securely.

06:35.340 --> 06:43.870
OK so you get the private key while AWOS has the public key for your instance.

06:43.950 --> 06:50.560
OK so any S-sh or when you go into your virtual machine then you're gonna use a private key OK.

06:50.820 --> 06:56.330
So together they allow you to connect your instance securely for Windows the private key is required.

06:56.400 --> 07:02.160
So we're not using Windows but for Linux the private key file allows you to securely access h into your

07:02.160 --> 07:03.060
instance.

07:03.060 --> 07:10.110
So we're going to use the private file to go into the machine that we that we have that easy to instance

07:10.350 --> 07:11.660
and we're going to log into it.

07:11.710 --> 07:12.570
OK.

07:13.020 --> 07:17.940
All right so a couple of things so note deselected keep here will we added to the key of set of key

07:17.940 --> 07:20.430
authorized for this instance learn more.

07:20.430 --> 07:21.920
So we're going to create a new pair.

07:21.930 --> 07:27.950
So we're going to create a you keep here and then let's call these key or tutorial one.

07:28.010 --> 07:28.700
Okay.

07:28.890 --> 07:34.560
And then I'm going to download the cave there and these two Of course you have to not show them to anybody.

07:34.560 --> 07:35.000
OK.

07:35.140 --> 07:41.400
You have to download the private key file up them before you can continue to store it in a secure and

07:41.400 --> 07:42.900
accessible location.

07:42.930 --> 07:46.140
You'll not be able to download the file again after it's great.

07:46.140 --> 07:51.250
So it's very important that you don't lose this private key OK so make sure you don't lose this private

07:51.240 --> 07:51.770
key.

07:51.960 --> 07:53.830
So we're going to download the keep here.

07:56.010 --> 07:57.410
So I'm going to save this.

07:57.570 --> 07:58.260
OK.

07:58.320 --> 08:03.530
In the downloads folder and you can see here that I got tutorial Wind-Up.

08:03.600 --> 08:07.920
This is a very very important Arko do not lose this one.

08:08.590 --> 08:08.920
OK.

08:08.970 --> 08:17.610
So now we're going to launch instances so it's telling us that it's creating security groups authorizing

08:17.610 --> 08:20.510
inbound roads all the stuff.

08:20.670 --> 08:21.390
OK.

08:26.520 --> 08:27.940
OK so now it's ready.

08:27.960 --> 08:33.970
And now it says it says your instances are now launching the following instant launches have been initiated.

08:34.210 --> 08:36.510
OK so now we have our E.W..

08:36.540 --> 08:38.740
Let's go back to AWOS now.

08:38.970 --> 08:40.350
OK.

08:40.350 --> 08:45.450
And now you can see here that this is the home page and we want to go to our instances.

08:45.480 --> 08:46.200
OK.

08:46.200 --> 08:50.670
So what we're going to do is we're going to go to services again and then this time we're going to go

08:50.670 --> 09:00.790
to it you do and then you go to instances this time and you'll see here that we have an instance that

09:00.790 --> 09:10.110
is running OK has an instance type availabilities on status public DNS public IP and all these to.

09:10.180 --> 09:10.830
OK.

09:11.910 --> 09:19.430
So how do we how do we as this age into it how do we go into this machine.

09:19.830 --> 09:24.870
Ok so now what we're going to do is we're going to go to the termino our terminal and then I'm going

09:24.870 --> 09:26.770
to go I'm going to.

09:26.820 --> 09:29.970
So I want to connect into this running instance right now.

09:30.120 --> 09:34.290
So what I'm going to do is the following I'm going to write S-sh.

09:34.290 --> 09:42.120
OK so if you see this is already a command in the Linux that allows me to remotely access a virtual

09:42.120 --> 09:46.280
machine or a machine in general from across the Internet I'm going to write.

09:46.290 --> 09:48.000
SS age and.

09:48.180 --> 09:50.110
Let me try to make this bigger.

09:50.220 --> 09:51.160
So SS H.

09:51.170 --> 09:53.640
And then dash I.

09:54.120 --> 09:58.440
And then I'm going to tell tell the S-sh command is my pen file.

09:58.450 --> 10:01.350
If you remember I downloaded it and downloads.

10:01.350 --> 10:02.100
Right.

10:02.160 --> 10:06.500
So I'm going to go at C source this file located.

10:06.630 --> 10:12.360
If I go open containing folder Well it's at home downloads OK.

10:12.500 --> 10:16.250
So I'm going to go S S H I and then

10:18.910 --> 10:25.240
root slash downloads slash tutorial tutorial one up pedia.

10:25.280 --> 10:25.830
OK.

10:25.920 --> 10:32.630
So you sure you go to the directory where you put the pad file in and then after that you want to write

10:32.630 --> 10:33.390
your user.

10:33.410 --> 10:36.660
So in my case my user name is this one.

10:36.920 --> 10:37.700
OK.

10:37.910 --> 10:38.610
Al-Faruq.

10:38.660 --> 10:39.740
Yes.

10:39.770 --> 10:45.890
And then add sign and then you want to come here and you want to copy copy the public DNS.

10:45.890 --> 10:53.800
OK so you're going to copy this year to Control-C and then come here and write control shift the OK.

10:54.440 --> 10:55.160
And that's it.

10:55.170 --> 11:02.980
You click enter and then you click yes OK OK so I know what happened.

11:03.120 --> 11:11.190
So first of all you need to before you do this before you need to to give some information to say that

11:11.280 --> 11:14.140
your prime your pen key has to be Mont..

11:14.160 --> 11:14.900
OK.

11:15.630 --> 11:19.200
So you're going to write C H mod 400.

11:19.340 --> 11:28.100
And then again to the directory after Panfilo so downloads and then tutorial one does pan and then you're

11:28.100 --> 11:35.460
going to do the command that you just did S-sh high and then all that will get high.

11:35.460 --> 11:36.580
So welcome back.

11:36.730 --> 11:42.670
So I found out the mistake and it's basically that I've been logging in with the user name which I always

11:42.670 --> 11:43.530
use al-Faruq.

11:43.540 --> 11:47.610
Yes but in fact you should learn a lot in the user name.

11:47.620 --> 11:54.510
Ubuntu should be fun to add and then your public IP are so easy to and then so.

11:54.510 --> 11:56.010
And then this link over here.

11:56.060 --> 11:57.150
Right.

11:57.280 --> 12:00.470
So it should be Roboto because we're using 18.00 for.

12:00.970 --> 12:02.370
So are going to click enter.

12:02.470 --> 12:09.610
So do nothing else but that and then you're going to notice here that we're actually inside this machine.

12:09.610 --> 12:10.190
So if I do.

12:10.300 --> 12:17.720
LS then we're in we're nowhere right so we have only like SS agent so.

12:17.930 --> 12:20.340
So what I'm going to do is I'm going to do.

12:20.390 --> 12:22.660
So you have a couple of things down.

12:22.690 --> 12:26.920
So you have for example get if right get then your get is there.

12:27.110 --> 12:28.490
You also have him.

12:28.740 --> 12:29.360
OK.

12:29.480 --> 12:32.110
So I'll just keep close now.

12:32.300 --> 12:36.320
You also you so you have a couple of software that is already installed.

12:36.380 --> 12:44.570
And what we're basically going to do so if I if I can somehow go back into this diagram here.

12:44.660 --> 12:51.010
So what we're basically going to do is right now through this terminal we are in the virtual machine

12:51.160 --> 12:55.470
so virtual machine on the cloud right on us.

12:55.490 --> 13:01.760
So what we're going to do is and we have the project on our local machine virtual machines or local

13:01.940 --> 13:04.540
virtual machine and we have the code here.

13:04.580 --> 13:07.040
So we're going to do is we're going to take this go.

13:07.040 --> 13:08.670
We're going to put it on get help.

13:09.830 --> 13:10.920
OK.

13:11.650 --> 13:17.440
Once we put it on get out we're going to go back into our virtual machine.

13:17.440 --> 13:19.970
We're going to pull that from get help.

13:20.110 --> 13:24.720
So we're going to put the code code on element on the cloud virtual machine here.

13:25.120 --> 13:27.600
We're going to do get chloë from get help.

13:28.030 --> 13:33.820
And then after that once we're done with that then we're going to download on this virtual machine we're

13:33.820 --> 13:42.690
going to download darker and darker compose then we're going to go into this file here the file with

13:42.690 --> 13:48.750
the code and we're going to do dark sooner darker compose built Sudhakar compose up and that should

13:48.750 --> 13:49.140
be it.

13:49.140 --> 13:54.930
So once we're done with that this service will be working and we should be good to go.

13:54.990 --> 13:58.690
So hopefully this explains the workflow that we're going to be following.

13:58.740 --> 13:59.440
OK.

13:59.730 --> 14:07.980
So first of all so now we know that we've successfully connected to the easy to install.

14:07.980 --> 14:12.810
So I'm just going to click control D and exit it and then I'm going to clear.

14:12.810 --> 14:18.450
So the first thing that I want to do is to go to my get help accounts I already have a get how bookings

14:18.450 --> 14:19.310
are going to get.

14:19.310 --> 14:27.100
How come I'm going to go sign in or in my information.

14:27.240 --> 14:28.220
OK.

14:34.640 --> 14:35.190
All right.

14:35.300 --> 14:38.020
So now click on start a project.

14:38.230 --> 14:39.310
OK.

14:39.790 --> 14:42.820
And then I'm going to call this project tutorial one for example.

14:43.070 --> 14:43.840
OK.

14:44.180 --> 14:45.700
Maybe set it to private.

14:45.700 --> 14:47.920
If you don't want to set it to private that's still fine.

14:47.930 --> 14:52.420
I'm just going to set it to private and then I'm going to explain describe it.

14:52.550 --> 15:02.950
This is the image recognition app or API developed for the course.

15:02.970 --> 15:03.700
OK.

15:04.250 --> 15:07.990
And then you're going to initialize this repository with the read meat.

15:08.330 --> 15:08.970
OK.

15:09.200 --> 15:11.040
And you're just going to create the repository

15:15.280 --> 15:15.970
or write that.

15:15.970 --> 15:17.530
So so far so good.

15:17.680 --> 15:21.900
So now we need to do is to push this going here.

15:21.910 --> 15:24.990
So we need to push onco it over here.

15:25.210 --> 15:31.690
So what we're going to do is we're going to upload the files into this here over here.

15:31.690 --> 15:32.290
OK.

15:32.430 --> 15:34.360
So I'm going to do upload files.

15:35.440 --> 15:44.120
And then I'm going to do choose your files and I choose my files and then I'm going to go to and see.

15:44.140 --> 15:47.300
So we're going to go to image classification.

15:47.530 --> 15:53.220
And then I'm going to use for example this doc recomposed swag and this Eubie then we're going to click

15:53.370 --> 15:55.930
it.

15:56.430 --> 15:58.210
So it needs one file at a time.

15:58.210 --> 15:58.930
OK.

15:59.080 --> 16:05.710
So you can do that or what you can do is you can you can do it automatically using like right away just

16:05.710 --> 16:06.960
one file.

16:08.150 --> 16:09.150
So what.

16:09.170 --> 16:13.300
OK so we're done mistakes here so we need to delete this one.

16:13.370 --> 16:14.520
And this one.

16:14.870 --> 16:17.850
OK so let's instead instead of doing this we can add.

16:17.900 --> 16:24.170
So I'll just add this as my oration so I'm going to go here and then I'm going to go into the image

16:24.170 --> 16:25.300
classification.

16:25.490 --> 16:27.760
EPRI then I'm going to do.

16:27.800 --> 16:30.700
Get in it again.

16:31.580 --> 16:34.810
So now are initialized a good repository.

16:34.990 --> 16:44.000
And then I want to write get remote and then your help that is going to tell you that if you want to

16:44.000 --> 16:44.720
add.

16:44.900 --> 16:49.450
So we want to add basically to portion.

16:49.490 --> 16:49.930
Right.

16:49.940 --> 16:57.900
So we're going to say get remote at origin and then the link OK.

16:59.550 --> 17:11.020
All right so now we're going to get khush origin master and then Jeff.

17:11.450 --> 17:13.800
So that's the good status.

17:14.030 --> 17:14.270
OK.

17:14.270 --> 17:21.650
So we're going to add everything first and then we're going to commit initial commit

17:24.420 --> 17:28.580
again and then we also need to tell to tell us who we are right.

17:28.590 --> 17:35.190
So we're going to do get config global users to e-mail.

17:35.280 --> 17:44.670
And then it's after Y F and Hotmail come so this is my get help with you and and then I'm going to set

17:44.680 --> 17:54.630
my names and get config global user name and then overboots that's my name and then we're going to push

17:54.990 --> 18:04.800
commit this commit and we're going to push this to masters get push or a Zen Master great.

18:04.870 --> 18:05.570
OK.

18:05.650 --> 18:08.710
So let's see what the problem was.

18:08.760 --> 18:09.500
So

18:14.220 --> 18:18.380
so we should go back to tutorial one ok.

18:20.010 --> 18:21.230
Here.

18:21.600 --> 18:29.260
Copy this one over here and then when we add the remote then it should be this link instead.

18:30.860 --> 18:40.780
OK so we've added it now and then we try to push into it or so get push origin M. Then I'm going to

18:40.780 --> 18:45.800
write my username and my password.

18:45.900 --> 18:49.260
So let's do half with force

18:55.050 --> 18:56.570
and now it's pushing here.

18:56.610 --> 18:57.940
And we should see everything.

18:57.990 --> 19:05.710
So if I refresh my code here you would notice here that I have my project doctor composed Yeah.

19:06.150 --> 19:08.570
Caesareans here on the Web.

19:09.000 --> 19:10.290
Right.

19:10.510 --> 19:13.600
D.B everything is working nicely here.

19:13.610 --> 19:14.710
Good.

19:14.940 --> 19:17.850
So what I'm going to do now is to go back.

19:17.970 --> 19:25.290
So when I go back here to once I have my project on my getup now I'm going to clone it from get help

19:25.290 --> 19:27.390
using this link over here.

19:27.400 --> 19:34.110
So I'm going to go back and S-sh and clear this that I'm going to SS age so see if we can find the S-sh

19:34.110 --> 19:35.260
command.

19:35.400 --> 19:38.920
So I'm going to S-sh into my easy to instance.

19:39.390 --> 19:40.480
Using a buntu.

19:40.590 --> 19:44.850
So S-sh into my running virtual machine

19:48.240 --> 19:49.980
and now I'm in my machine.

19:50.070 --> 19:55.700
So I get to make a directory I'm going to call it image classification.

19:55.950 --> 19:58.770
I'm gonna go into image classification.

19:58.770 --> 19:59.610
All right.

19:59.610 --> 20:07.740
And then I'm going to do get a clone and then the link that it's God told me to put my username and

20:07.740 --> 20:09.710
password.

20:16.520 --> 20:21.340
OK so now if we do ls we're going to find that we have tutorial one.

20:21.410 --> 20:24.430
So if you go into tutorial one OK.

20:25.690 --> 20:32.840
And then we do it less then we find that our D-B Dockett composer yemo web and so on.

20:32.860 --> 20:33.750
OK.

20:34.060 --> 20:38.530
So that what we want to do is we want to install on this machine.

20:38.530 --> 20:44.260
Over here we want to install docker or compose and daquiri right because remember there's a docker composed

20:44.260 --> 20:46.610
file on the virtual machine.

20:46.660 --> 20:50.570
So what we need to do is to go and install Bacher or compose.

20:50.710 --> 20:51.490
So let's do that.

20:51.490 --> 20:55.590
So we're going to go in here and then download knocker.

20:56.050 --> 21:00.330
First of all we're going to download our car and then we can and also one to.

21:00.340 --> 21:01.110
OK.

21:01.450 --> 21:08.340
And then we're going to go get democracy for a buntu and then we're going to follow these instructions

21:08.340 --> 21:08.640
again.

21:08.640 --> 21:14.760
So what were the instructions so first of all we do Sudoku and get updates I'm going to copy that and

21:14.760 --> 21:17.410
put it in my termino which is now.

21:17.460 --> 21:22.440
So what we're where we are right now still unclear this year.

21:22.440 --> 21:25.320
So where we are right now we are on the server.

21:25.320 --> 21:32.010
So this terminal is actually the server I'm controlling the server that I bought from or are or launched

21:32.040 --> 21:33.390
from easy to gate.

21:33.480 --> 21:35.140
So this is this computer over.

21:35.140 --> 21:37.150
This is this virtual machine.

21:37.650 --> 21:38.760
So what am I going to do.

21:38.760 --> 21:42.110
I'm going to first update the app get update.

21:42.310 --> 21:44.740
I'm going to do that fairly quickly.

21:45.930 --> 21:46.510
OK.

21:46.590 --> 21:51.600
And then the second thing is where you're going to copy these lines if it goes over here and paste them

21:51.600 --> 21:53.830
again once this line finishes.

21:54.300 --> 21:56.650
OK so the press yes.

21:57.350 --> 22:03.730
And install them and then next I'm going to add the darker officials see LGB.

22:03.770 --> 22:07.810
So my copy this again very straightforward process.

22:07.940 --> 22:15.860
So I'm just not finished for it for them to do this so all these command center app get install app

22:15.890 --> 22:21.650
transport TPSAC a trans certificates Kerl and software property's gone.

22:21.770 --> 22:25.100
So it's installing all of these so it might take a few seconds.

22:25.100 --> 22:27.270
So here we're doing curve and we're done.

22:27.410 --> 22:34.130
Last one and then we're also going to do now at the dock or official as you Beaky.

22:34.130 --> 22:37.790
So I'm going to add it used and tells me OK so far so good.

22:37.790 --> 22:39.040
Everything is good.

22:39.350 --> 22:45.310
And then since this is a 64 bit system I'm going to add this over here.

22:45.350 --> 22:50.420
This line is good but then I'm going to change this over here so not this one.

22:50.420 --> 22:52.010
So let me go back.

22:52.610 --> 22:53.740
Let me see if I can.

22:53.750 --> 22:54.430
OK.

22:54.710 --> 23:00.260
So I'm going to change this one into test and then click.

23:03.520 --> 23:05.930
All right so it's now fetching that back it just.

23:06.090 --> 23:13.260
And now what I'm going to do is again update suruh Africa Update pace this year in case you're wondering

23:13.260 --> 23:15.830
how on pasting I'm doing Control shift.

23:15.890 --> 23:16.500
OK.

23:16.830 --> 23:19.180
So just it's not control B.

23:19.290 --> 23:24.910
And then now I'm going to finally install the latest version off doxies or my copy this.

23:25.230 --> 23:31.670
And come here and then paste that yes and it should be.

23:31.740 --> 23:32.730
And installing.

23:32.730 --> 23:41.090
So he already installed it on that King and then once we're done with that we want to verify by running

23:41.090 --> 23:43.680
sooted AUKer run Hello world.

23:43.820 --> 23:44.900
So I'm going to copy that.

23:44.900 --> 23:48.580
Come here and run it and lo and behold we have.

23:48.590 --> 23:49.650
Hello from Dharker.

23:49.670 --> 23:53.470
This message shows that your installation appears to be working great.

23:53.630 --> 23:59.120
OK so now we have a running instance off docker and the virtual machine.

23:59.120 --> 24:05.610
Ok so if we go back here I now have my code on the virtual machine which is called from Gyuto.

24:05.780 --> 24:11.050
And I also got Dharker So the only thing left is to get darker components I'm going to go back.

24:11.120 --> 24:11.770
OK.

24:11.930 --> 24:19.050
And then we're going to download dock or compose I want to say install AUKer compose a buntu.

24:19.190 --> 24:19.910
OK.

24:20.210 --> 24:26.420
Similar to what we did in previous videos where I showed it it should be the same as straightforward

24:26.420 --> 24:28.160
as installing it on your machine.

24:28.160 --> 24:30.150
This virtual machine over here.

24:30.530 --> 24:32.970
So let's see we're here and we're going to do it.

24:33.150 --> 24:40.110
Then I choose a Linux Linux machine and then we're going to get this right this command over here.

24:40.130 --> 24:46.520
Copy that and then paste it and then enter.

24:46.540 --> 24:50.750
Then after that I'm going to copy this line over here.

24:50.780 --> 24:52.540
Copy that.

24:53.250 --> 24:59.380
And then pasted and then finally I want to test and Salesian someone.

24:59.490 --> 24:59.750
All right.

24:59.760 --> 25:00.970
Dr. compose very.

25:01.020 --> 25:10.250
So Doctor compose dash dash versioned click enter and then it shows me that the current version is 1.2

25:10.280 --> 25:11.310
1.2.

25:11.790 --> 25:12.960
So that's great.

25:12.960 --> 25:19.110
So now let's go back so I'm going to do so I'm in in the docker compose file so I'm going to do pseudo

25:19.830 --> 25:28.460
doctor compose and then switch it off or compose and then build let's first build the project you will

25:28.480 --> 25:31.390
see here that it's pulling from Mongo.

25:31.410 --> 25:35.850
So this is the Mongo D.B and it's downloading and installing it.

25:35.910 --> 25:38.000
So this is the image right.

25:38.010 --> 25:44.700
And that means getting out from pythons 3 so it's downloading and installing the image on the server

25:44.880 --> 25:46.670
on your PC to instance.

25:46.910 --> 25:51.670
So all of this is happening by darker and darker compose of course.

25:52.460 --> 25:57.930
And then once we finish from this year's show once it's finished extracting and downloading from Python

25:57.950 --> 26:01.330
3 then we're going to go through all of their steps right so step two.

26:01.430 --> 26:03.300
What changed the work directory.

26:03.410 --> 26:10.610
Then download and install the requirements the files and the requirements of text and then basically

26:10.610 --> 26:13.510
we're doing all of these things which we already did.

26:13.580 --> 26:14.210
OK.

26:16.290 --> 26:18.740
Or it's got to wait for a few seconds.

26:18.870 --> 26:20.630
Onto all of these.

26:21.110 --> 26:27.410
So we're downloading a couple of them right where we're downloading that seat and flask glass press

26:27.420 --> 26:31.420
for all of these things are being downloading requests be crypt.

26:31.440 --> 26:36.100
All of these things are being downloaded so we're going to wait for them until these finished and redone.

26:36.150 --> 26:36.950
OK.

26:37.290 --> 26:45.600
Now the next thing we want to do is we want to do pseudo darker compose up but we're going to add dash

26:45.610 --> 26:49.960
de grace and daddy is it means it's going to run in detached mode.

26:50.220 --> 26:53.710
So I'm going to run that and then what.

26:53.740 --> 26:55.740
Basically this means is this.

26:55.860 --> 26:57.140
Currently you're running.

26:57.160 --> 26:58.400
Right.

26:58.540 --> 27:02.880
But the only difference is is that I don't have to.

27:02.890 --> 27:04.440
So I can move here.

27:04.450 --> 27:09.880
I'm running in detached version so I can do whatever I want while it's working on the server.

27:09.880 --> 27:10.460
OK.

27:10.630 --> 27:12.360
So now it's officially working.

27:12.360 --> 27:19.080
So if I come here and this is a public so you can think of this as the domain name off the DNS again.

27:19.150 --> 27:24.650
So if I go here let's go to your open post man.

27:24.740 --> 27:28.400
And then we're going to send up post request to slash register see what happens.

27:28.400 --> 27:29.030
Right.

27:29.210 --> 27:30.780
What are we going to get.

27:31.070 --> 27:32.430
So we're going to go there.

27:32.660 --> 27:40.540
Let's let's just leave post menta open first and then you would notice here that what I'm basically

27:40.540 --> 27:44.260
what basically done here is that I'm letting doc compose run.

27:44.270 --> 27:51.230
But at the same time I have the flexibility of going in and out of the files right and doing stuff administrative

27:51.230 --> 27:52.820
stuff on the server.

27:52.820 --> 27:54.560
So postman is open.

27:54.560 --> 28:02.330
So I'm going to go now to this address over here so the Amazon address splash and then I'm going to

28:02.330 --> 28:03.610
write register.

28:03.620 --> 28:10.220
So now I'm going to hit the end point and slash register and then for for the for what I'm going to

28:10.220 --> 28:16.670
send the server I'm going to send username let's say ABC 2:59 ABC.

28:16.670 --> 28:19.650
So that's my username and password is secure.

28:19.700 --> 28:25.700
So I'm going to post this into the server and hopefully it tells me hey you're a registered successfully.

28:25.740 --> 28:26.870
Let's see what happens.

28:26.900 --> 28:29.610
I'm gonna send this to the server.

28:31.400 --> 28:39.470
So a couple of things that we missed actually is first of all go to services and then easy to instance.

28:39.710 --> 28:40.360
OK.

28:41.700 --> 28:49.410
And then here once they do instance loads go into your instances and then we're going to change something

28:49.410 --> 28:53.130
in the security group off this instance.

28:53.130 --> 28:59.780
So we want to allow all the traffic coming into this instance to be allowed right so when I click on

28:59.790 --> 29:06.720
this one and then I'm going to click on inbound and then you shouldn't see all traffic.

29:06.730 --> 29:08.160
So I just edited this.

29:08.230 --> 29:14.530
But if you edit this in then you should only see S-sh right so I'm going to delete this just like to

29:14.530 --> 29:19.780
simulate what you would have and then what I'm going to do is I'm going to do that through and then

29:19.780 --> 29:28.630
I'm going to ride all traffic and then all protocols all ports and then and then this doesn't necessarily

29:28.630 --> 29:30.800
have to be the best security wise.

29:30.850 --> 29:36.970
But for now just to get to example running up and running we're going to leave that as it is and then

29:36.970 --> 29:44.700
we're also going to write anywhere so anyone can can head to our our easy to instance or our API.

29:44.860 --> 29:46.230
And then I'm going to just say that.

29:46.420 --> 29:48.060
OK.

29:51.110 --> 29:55.610
So after I've saved that I'm going back to my my

29:58.310 --> 30:00.770
virtual box here I'm going to stop this.

30:00.770 --> 30:01.850
I'm going to clear.

30:02.080 --> 30:02.440
OK.

30:02.450 --> 30:03.500
And then I'm going to open.

30:03.500 --> 30:09.840
I'm going to write them and then Web slash app dot one.

30:09.890 --> 30:10.210
OK.

30:10.220 --> 30:17.000
So I'm going to open this and then I'm going to click on the I bought in to allow me to write stuff

30:17.380 --> 30:23.000
and then I'm like come down here and he should write debug is equal to true so that you can debug when

30:23.000 --> 30:30.320
something happens host equals zero point zero point zero point zero and port is equal to five thousand.

30:30.350 --> 30:31.500
OK.

30:31.880 --> 30:36.430
So once you've written that you're going to click on the escape button.

30:36.620 --> 30:38.550
OK so this is the only change you're going to do.

30:38.570 --> 30:42.660
You're going to click on the escape button and then semi-colon.

30:42.680 --> 30:50.240
So you can see the semi-colon written down on the bottom left corner and then w and then Q And then

30:50.750 --> 30:51.990
press enter.

30:52.120 --> 30:52.740
OK.

30:52.850 --> 31:01.730
So that should take you back to the original terminal and then all we're gonna do is we're gonna build

31:02.000 --> 31:05.380
a pseudo knocker compose build.

31:05.480 --> 31:06.370
OK.

31:06.680 --> 31:10.230
And then once we've built we're going to send it off or compose up.

31:10.400 --> 31:11.110
OK.

31:11.330 --> 31:17.600
So once we do that finally after we've done after all this once we're done with that we're going to

31:17.600 --> 31:18.580
come here.

31:18.650 --> 31:19.320
OK.

31:19.460 --> 31:20.830
And then I want to register.

31:20.830 --> 31:25.980
So I'm going to register and then you use your name so I say in q w e r t y.

31:26.030 --> 31:28.910
Ok now I'm going to send this request.

31:29.210 --> 31:29.850
OK.

31:29.930 --> 31:36.670
And then you'll see here that you successfully signed up for the API status is Duhan.

31:36.800 --> 31:44.360
And if I go back to the terminal it will tell me hey I got a post request ask Slash register and the

31:44.360 --> 31:45.920
status was 200.

31:45.950 --> 31:49.080
I successfully handled them.

31:49.550 --> 31:49.910
All right.

31:49.910 --> 31:51.550
So hopefully this made sense.

31:51.560 --> 31:58.170
And this is basically how we are end up deploying this API onto the server.

31:58.220 --> 32:03.090
Ok so this is how you would deploy any of the flask Abiah eyes on AWOS.

32:03.110 --> 32:06.760
Easy to is using docker and our compose.

32:06.770 --> 32:08.330
So we're gonna to stop here.

32:08.360 --> 32:09.560
And thank you for watching.
