WEBVTT

00:05.280 --> 00:08.860
I everyone welcome back because let me clear this first before we start.

00:09.080 --> 00:14.960
So in this video we're going to be finally showing the Abiah either worried that we just built a new

00:14.960 --> 00:21.260
world to see how different you know how we can use all its different features to do different things

00:21.260 --> 00:25.350
like We can simulate if we have a two bank accounts and so on.

00:25.400 --> 00:26.070
OK.

00:26.300 --> 00:28.010
So yeah let's get started.

00:28.010 --> 00:30.070
So first of all we want to build the project.

00:30.200 --> 00:35.990
Now I removed all the files from this bank API into the tutorial as I always do but this you should

00:35.990 --> 00:37.850
be fine if you're in A.P..

00:37.910 --> 00:40.220
I'm going to go back loops.

00:40.290 --> 00:44.350
So I want to go back and I'm going to go into tutorial one gig.

00:44.530 --> 00:50.240
I'm going to do Sudhakar compose build lot to build this product.

00:51.050 --> 00:52.000
OK.

00:53.830 --> 01:02.260
And once it finishes downloading all of the stuff that is related to Python and flask and all the libraries

01:02.260 --> 01:10.600
that we need and we do then we once we have that then we're going to be able to implement or to test

01:10.600 --> 01:11.310
the API.

01:11.320 --> 01:16.680
Once we do Divakar compose up so it should be done now.

01:16.750 --> 01:25.120
And now we do so do Darger compose out and now it's running so you can see that it's running now localhost.

01:25.140 --> 01:30.620
So let's open up the postman's let's get rid of this year and this year.

01:30.800 --> 01:31.500
OK.

01:31.680 --> 01:34.760
So we got Does that localhost five townland.

01:34.890 --> 01:39.920
First of all let's register again to register and then I'm going to register.

01:39.960 --> 01:46.310
So I want to send the Gs on the first account that I want to register is actually the bank account right.

01:46.330 --> 01:51.900
This is the first account that is always made to the bank and is going to have a password Daas Let's

01:51.900 --> 01:54.250
see secure game.

01:54.780 --> 01:58.180
So as we usually choose a very very secure password.

01:58.610 --> 01:59.160
OK.

01:59.340 --> 02:06.790
So now if I try and I send it to the bank tell me you've successfully signed up for the API status is

02:06.790 --> 02:07.540
too hungry.

02:07.560 --> 02:11.520
OK great so now we have a status code.

02:11.560 --> 02:13.670
And we signed the bank.

02:13.720 --> 02:20.260
So if you want to check the balance of the bank so we can go back slash balance and then you can see

02:20.260 --> 02:27.360
that the bank doesn't own anything and doesn't have a debt against 0 0 caseless joint and maybe zoomin

02:27.370 --> 02:28.210
a bit.

02:28.530 --> 02:30.370
OK so now I'm going to do.

02:30.520 --> 02:32.160
I'm going to register another person.

02:32.190 --> 02:39.250
So when I register to persons I actually test one and test two and they're both going to have the same

02:39.280 --> 02:40.210
battery.

02:40.480 --> 02:46.800
So when I signed up test one I also got us test two.

02:46.970 --> 02:52.920
Now if I try to sign up to twice then I should get an ear that says Invalid use your name Suria Why.

02:52.980 --> 02:56.820
Because this user name is used already exists.

02:56.840 --> 03:00.030
Ok so now I have two people now let's say Bruce.

03:00.050 --> 03:00.800
Just one.

03:00.800 --> 03:06.900
So Burreson just one adds some money so I'm going to change that to add and he adds some amount less

03:06.920 --> 03:09.570
the amount is hundred bucks.

03:09.590 --> 03:10.120
OK.

03:10.190 --> 03:19.330
So he adds $100 and I click send so that tells me amount and successfully talk to a guy.

03:19.340 --> 03:25.650
So the user ended up going to the bank he paid $100 in cash and the bank added it to his account.

03:25.820 --> 03:32.460
So now if I check the balance of the test one then I'm going to see that he has.

03:32.510 --> 03:33.850
He owns ninety nine.

03:33.890 --> 03:37.170
Well why is it 9 9 because the banks don't remember.

03:37.170 --> 03:40.340
Don't forget the bank got one dollar right.

03:40.340 --> 03:41.920
The transaction fee.

03:41.990 --> 03:44.330
So the user only has $99.

03:44.350 --> 03:47.900
Right because for each transaction the bank takes $1.

03:47.900 --> 03:54.250
Now if I check the bank the balance of the bank it should be one right so he should own one.

03:54.290 --> 03:56.350
As you can see your own is one.

03:56.660 --> 03:57.510
OK.

03:57.860 --> 04:00.720
Now let's say So let's go.

04:00.740 --> 04:09.380
So let's say that just one example wants to transfer some money to just to get someone to add an extra

04:09.380 --> 04:14.030
field to and then I'm going to say this field is for example desk too.

04:14.390 --> 04:15.220
OK.

04:15.410 --> 04:17.160
So I want to send some.

04:17.180 --> 04:28.000
So money's let's say $20 from tests wanted us to someone to do slash transferred and then send it and

04:28.010 --> 04:31.100
then it will tell the amount as successfully to account.

04:31.100 --> 04:38.240
So if I check the balance of desk to select needs change this huge to test do I check the balance.

04:38.690 --> 04:47.050
Well that balance should be 19 because the bank took one dollar as a transaction fee.

04:47.160 --> 04:49.480
So it ends up being only 19.

04:49.650 --> 04:53.630
But if I check the bank balance off just one.

04:53.820 --> 04:54.640
OK.

04:54.930 --> 05:01.000
Then he should have 90 99 minus 20 which is 79 right as it's shown here.

05:01.320 --> 05:04.250
So yeah this is basically the guy you can also take a loan.

05:04.260 --> 05:06.660
Let's try and take a loss and take a loan.

05:07.010 --> 05:16.080
So let's say test tube wants to take a loan a $5 a game does not take a loan and he's added.

05:16.140 --> 05:17.160
So he's taken a loan.

05:17.160 --> 05:25.210
So let's check his bank balance now or her balance on you know either male or female.

05:25.350 --> 05:30.090
So he now he owns $24 and he has a debt of five.

05:30.210 --> 05:36.930
So now I'm going to take away from his money and pay for the debt so I'm going to do change to pay loan.

05:37.170 --> 05:37.950
OK.

05:38.160 --> 05:43.180
And then I want to see just do not pay five dollars to the loan.

05:43.260 --> 05:44.180
OK.

05:44.670 --> 05:46.240
And then says loan paid.

05:46.290 --> 05:52.790
So if I now check the balance of debt to then you can see that he has lower money.

05:53.200 --> 05:56.450
So this is basically the API and that were developed.

05:56.440 --> 06:02.130
So you feel free to play around with that if you find any problems in it or mistakes just let you know

06:02.120 --> 06:08.830
in the Q and A section and I'll let everyone else know that there was a problem and shouldn't be too

06:09.000 --> 06:10.740
you know too huge of a problem.

06:10.750 --> 06:14.700
Hopefully so yet we're going to stop here and we're not pick up in the next.

06:14.730 --> 06:16.810
And so until the next video become the.
