I everyone welcome back because let me clear this first before we start.
So in this video we're going to be finally showing the Abiah either worried that we just built a new
world to see how different you know how we can use all its different features to do different things
like We can simulate if we have a two bank accounts and so on.
OK.
So yeah let's get started.
So first of all we want to build the project.
Now I removed all the files from this bank API into the tutorial as I always do but this you should
be fine if you're in A.P..
I'm going to go back loops.
So I want to go back and I'm going to go into tutorial one gig.
I'm going to do Sudhakar compose build lot to build this product.
OK.
And once it finishes downloading all of the stuff that is related to Python and flask and all the libraries
that we need and we do then we once we have that then we're going to be able to implement or to test
the API.
Once we do Divakar compose up so it should be done now.
And now we do so do Darger compose out and now it's running so you can see that it's running now localhost.
So let's open up the postman's let's get rid of this year and this year.
OK.
So we got Does that localhost five townland.
First of all let's register again to register and then I'm going to register.
So I want to send the Gs on the first account that I want to register is actually the bank account right.
This is the first account that is always made to the bank and is going to have a password Daas Let's
see secure game.
So as we usually choose a very very secure password.
OK.
So now if I try and I send it to the bank tell me you've successfully signed up for the API status is
too hungry.
OK great so now we have a status code.
And we signed the bank.
So if you want to check the balance of the bank so we can go back slash balance and then you can see
that the bank doesn't own anything and doesn't have a debt against 0 0 caseless joint and maybe zoomin
a bit.
OK so now I'm going to do.
I'm going to register another person.
So when I register to persons I actually test one and test two and they're both going to have the same
battery.
So when I signed up test one I also got us test two.
Now if I try to sign up to twice then I should get an ear that says Invalid use your name Suria Why.
Because this user name is used already exists.
Ok so now I have two people now let's say Bruce.
Just one.
So Burreson just one adds some money so I'm going to change that to add and he adds some amount less
the amount is hundred bucks.
OK.
So he adds $100 and I click send so that tells me amount and successfully talk to a guy.
So the user ended up going to the bank he paid $100 in cash and the bank added it to his account.
So now if I check the balance of the test one then I'm going to see that he has.
He owns ninety nine.
Well why is it 9 9 because the banks don't remember.
Don't forget the bank got one dollar right.
The transaction fee.
So the user only has $99.
Right because for each transaction the bank takes $1.
Now if I check the bank the balance of the bank it should be one right so he should own one.
As you can see your own is one.
OK.
Now let's say So let's go.
So let's say that just one example wants to transfer some money to just to get someone to add an extra
field to and then I'm going to say this field is for example desk too.
OK.
So I want to send some.
So money's let's say $20 from tests wanted us to someone to do slash transferred and then send it and
then it will tell the amount as successfully to account.
So if I check the balance of desk to select needs change this huge to test do I check the balance.
Well that balance should be 19 because the bank took one dollar as a transaction fee.
So it ends up being only 19.
But if I check the bank balance off just one.
OK.
Then he should have 90 99 minus 20 which is 79 right as it's shown here.
So yeah this is basically the guy you can also take a loan.
Let's try and take a loss and take a loan.
So let's say test tube wants to take a loan a $5 a game does not take a loan and he's added.
So he's taken a loan.
So let's check his bank balance now or her balance on you know either male or female.
So he now he owns $24 and he has a debt of five.
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.
OK.
And then I want to see just do not pay five dollars to the loan.
OK.
And then says loan paid.
So if I now check the balance of debt to then you can see that he has lower money.
So this is basically the API and that were developed.
So you feel free to play around with that if you find any problems in it or mistakes just let you know
in the Q and A section and I'll let everyone else know that there was a problem and shouldn't be too
you know too huge of a problem.
Hopefully so yet we're going to stop here and we're not pick up in the next.
And so until the next video become the.