Placeholder Image

Subtitles section Play video

  • so I probably have to clean that up at some point.

  • Okay, so that took a lot longer than I actually plan.

  • I think I spent probably like, well, 2.5 hours, maybe three hours doing that.

  • So I think it's time to get started.

  • And also, I found another package with T shirts.

  • All right, so this is where we're at right now.

  • In case you didn't watch the last one, I can catch you up.

  • So what we've got right now is basically built an SQL database using prosperous.

  • Then we've built on a P I on top of that, using python and flash.

  • So now basically were able thio add different users and make different calls to the A P I.

  • So the next step now is gonna be to try to figure out how to make the daughter base work with other things and just a user.

  • So, for instance, I think I'm gonna make kind of like a note taking Yeah, So there will be a notebook, And then inside that notebook, there will be different notes, and then each notebook should be connected to a user.

  • So that's what we're gonna do now and then I'm thinking I'm gonna make an app to just a very simple app where this is gonna be like a text field.

  • And then you could write something in it and then pressed, like, save.

  • And then that should add it to the daughter base to your personal notebook and then a new entry or something into that notebook.

  • And this is not what the app that I'm trying to build its but think this is a good way for me to kind of learn how toe work with all these different technologies.

  • So that's what we're gonna do now.

  • Okay, so now this is what I've done.

  • I've created a yusor table, and then we have a note pad which will contain all the notes.

  • Then I've created another class called No.

  • So that's what I've done so far.

  • And then I've added some of the A p I calls Andi.

  • Uh, basically, we can do the sign up.

  • 123456 Okay, that should not be there.

  • Posed?

  • No.

  • I think this should work now.

  • Yep.

  • So, welcome, 18.

  • I changed this to be the idea of the user.

  • Just that I could see that.

  • What the id Iwas?

  • And then now we know what the idea this week and then called 18.

  • So that's the idea of the person.

  • And this is the call that we're going to make.

  • So we had the idea of the user and then add in the note pad, Go on, notes Dad.

  • Like so and then that Joseph's wth e idea of note pads.

  • Then we know that we've added I know that and then we can also do a note and then that just says yes.

  • And this is the ad note, and that just adds a title and a text to the note.

  • And then we can go to this one, which is the dollar base of the SQL, And then we can do select store from users and we get all the uses that we bought it and then we can do Select Star from note hod.

  • And now we should get a note pad that has a user with an I.

  • D.

  • Of 18 and I think the note pad I d should be 18 as well.

  • I know it's 80 yeah, that's right.

  • Actually, it should be because it's a primary T and it doesn't have any relationship to anything else here.

  • So no idea doesn't have any relationship to anything.

  • And then we could do Select Star from notes and then we should get a note with a note i D.

  • And that should be a unique note i d.

  • And then we also should get the taste.

  • And that should just say text on the title should just say title.

  • And then we should get a note pad idea, which should be eight.

  • All right, so that's the I D, which is 10 text title and eight.

  • Now we could try adding one more note and then do the same thing.

  • Yeah, so you see, they refer to the same notebook, but they are two different notes based on the i d.

  • So they would say different things or they could say different things.

  • And yes, that's how it's gonna work.

  • And then, basically, it would just be one notebook for every user.

  • So now the next step would be to create an app that calls this a P I.

  • Anyway, let's build the basic you eye for the app.

  • All right, so today we are going to try to get the actual act built.

  • So in flutter, I'm gonna try to get the app to call the AP I and then add different notes and stuff to the notebook.

  • No pad and also send.

  • It's really good weather and it's the Easter weekend.

  • I'm going to go with my parents and my girlfriend to my parents Holiday House.

  • So yep, that's what's happening today.

  • Yeah, all right, we're off now and the ferry didn't work, so that's why we had to walk.

  • But now I'm late for a meeting with my glass so they'll get into that way.

  • Have a starter flutter project up and running.

  • Now the next step will be Thio.

  • Just try toe by pushing this bottom to send some message to the A P R and then say how that works created the get so that we can get a note.

  • So, basically, if you have the idea of the user, I think there's one for 18 as well.

  • Then you get the I.

  • D of the actual note and then the note pad I D.

  • And then the text of the note and entitled Off the notes were just now just title and takes s O.

  • This is the Jason response that we get now.

  • The next thing is to I think, for this tutorial just see how flutter deals with converting the Jason response to an object on dhe.

  • All these like synchronous methods as well.

  • So now this is the responsible yet from calling this a p I.

  • And then if we go thio the flutter project, then we have this method here, which is a future builder.

  • This then either returns Nothing.

  • If there's no response, sir, there's an error.

  • And then if we get the actual response, then it returns.

  • This which is the title of the post and that is the title from here.

  • So that should just be titled.

  • So then, if we go to this father thing, they run it again.

  • So now we get the actual response from the A P I.

  • Now, the next thing would be thio be ableto actually add new notes I'm gonna create like a text field and then the bottom that's a sin.

  • And then all just use that use their i d off one of the uses that I've already created.

  • And then that should add a new note that has some title and some texts.

  • So that's the way Good morning today we're doing some salmon fishing.

  • Well, it's some sort of salmon fish.

  • Not sure, exactly with the name of it ISS in English, but it's some sort of salmon, and I just wanted to show you how beautiful the water looks right now.

  • It's, like, super clear, pretty much no wind.

  • Now the wind picked up just as I said that.

  • But anyway, I'm going to do some fishing and hopefully I'll catch some seven.

  • And also, this is something that I pretty much try to do every time that I'm here.

  • I tried to get up a little bit earlier and get out and do some fishing in the morning.

  • And, uh, yeah, it's a nice little quiet time, all right, so now I think I've built it out so that you can add a note in the text field and then press the ad button.

  • And then that should add it to the daughter base.

  • And then it should reload and get that note.

  • And that has the latest note say, repressed ad, though now we get the date and then they note this.

  • Hello.

  • This is my note.

  • When you press the ad button, it's a post request than this loads, which is a get request.

  • If the request method is equal to get, then we just show daughter that we want to show.

  • And then if the message Methodist post, then we create a new notes from whatever daughter we get.

  • But yet I'm pretty happy with where we're at so far, all right, with this great sunset and completely still ocean.

  • I think it's time to end this log.

  • But I'm really happy with where we're at with the app and with the server and the A p I and the daughter based on all that.

  • So that's how far we got in this one and see how far we get from the next wave.

so I probably have to clean that up at some point.

Subtitles and vocabulary

Click the word to look it up Click the word to find further inforamtion about it